View Full Version : Button in DataGrid TemplateColumn
09-19-2005, 12:41 AM
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.
09-19-2005, 03:51 AM
any help plz, if u want me to put the source code i will
09-19-2005, 03:40 PM
Just put your delete code in the click event of the button.
Do you know how to add code for a button event?
09-20-2005, 12:59 AM
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 :mad:
09-20-2005, 04:35 PM
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.
09-21-2005, 03:40 AM
look i'm sorry ok, thank u too much :thumbsup:
09-21-2005, 03:05 PM
Does that mean you'd like to see the code, or did you get it?
09-22-2005, 12:51 AM
well i got it from asp.net web forum, but i'm thanking u any way for trying 2 help ;)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.