How to find the value of the GridView row?
Posted on 2006-06-27
The value of the GridView row is what I am looking for. I am implementing the CheckBox control column in the GridView control and need to take actions on those "checked" rows. The DataKeyNames is set to be the table primary key, which is what I am lookng for. When you select a row, you can always use SelectedValue to retrieve this key value. The question is what can you do to retrieve the key value while looping through the rows.
Thanks in advance.