View Full Version : Button in DataGrid TemplateColumn
09-18-2005, 11:41 PM
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, 02:51 AM
any help plz, if u want me to put the source code i will
09-19-2005, 02: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-19-2005, 11:59 PM
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, 03: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, 02:40 AM
look i'm sorry ok, thank u too much :thumbsup:
09-21-2005, 02:05 PM
Does that mean you'd like to see the code, or did you get it?
09-21-2005, 11:51 PM
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 © 2017 vBulletin Solutions, Inc. All rights reserved.