-
I have a simple gridview.
-
3 Columns |
NAME AGE Birthday
On RowUpdated I want to get something like:
Gridview1.Column[2].Cell[2].Text
so I can get the value from the column 2. How can I do it?
Thank you.
pS: row updated & row updating are the same thing?
Here’s the MSDN article with example code: GridView.RowUpdating Event
Row updated and updating are not the same. Updating happens before the GridView control updates the row and updated is after the data has been updated.
In your Gridview control you need to add
OnRowUpdating="TaskGridView_RowUpdating"Assuming the value is in a textbox in the Age column this is how you would store the value in a string: