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
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MuthuMari MPosted May 4, 2012, 1:34 AM
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"
SenthilkumarPosted May 4, 2012, 12:09 AM
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....