If i have a button in datagrid TemplateColumn, and i want to make a Sub to that column to delete a record in database, and im working in VisualStudio.NET and cant do that, will be great also to tell me how to do that in Repeater Control, thank u too much.
Just put your delete code in the click event of the button.
Do you know how to add code for a button event?
__________________
If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/
Sure smart guy, vent u tried b4 to add any button in DataGrid TemplateColumn and c if u can put ur code in its event, it didnt work, coz it must be not embeded in another control
I do have a button in a template column and I did put code in its click event.
You have to actually write code instead of relying on the WYSIWYG thingy.
I'd help more, but I'm not as smart as you, so I'm sure you can handle it.
__________________
If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/
Does that mean you'd like to see the code, or did you get it?
__________________
If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/