Accessing GridView’s DataKeys Instead of SelectedValue
In the beta releases of ASP .Net 2.0, one could simply set the Visible attribute to False on a BoundField column in a GridView control, and then retrieve the value of the BoundFields selected row by accessing the SelectedValue attribute of the GridView like so (maybe in the SelectedIndexChanged event): string SelectedRowValue = GridView1.SelectedRow.Cells[0].Text; But, [...]