How to use button in Griedview?
i need a button in gridview, one button for each row, when i click on button i need to retrive value from one of column in row please suggest
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

SenthilkumarRank #387 · 6.5K reputationPosted May 3, 2012, 8:09 PM EDT
you can place the button in the template view.
write the command name and in the item command event,you will get the current row.
Then you can find the control....
MuthuMari MRank #5,738 · 288 reputationPosted May 3, 2012, 9:34 PM EDT
use template field to bind button columns.
pls refer for samples.
http://www.c-sharpcorner.com/uploadfile/raj1979/select-add-update-and-delete-data-in-a-Asp-Net-gridview-control/
http://www.codeproject.com/Articles/24085/Insert-Update-Delete-with-Gridview-simple-way
thanks.
If this post is useful then mark it as "Accepted Answer"