Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a GridView in in my webform. I set the data source as a DataTable, and bind it. When I tried adding an edit button by selecting "Enable edit/update/delete", it wasn't showing up.

But, I managed to show the button manually. On button click, how do I get the first cell value of the row, of which the button is clicked ?
Posted

1 solution

You can get the Row details in GridView.RowCommand Event[^].

Or you can directly get that inside the Button Click Event. Example at - Get Cell Value in C# Gridview when Button clicked on row[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900