The index of collection starts with 0. That means, if you want the first cell, you must have to get the cell at the 0th position, something like this.
Gridview1.SelectedRow.Cells[0] ;
The following code gets the value of the second cell of the currently selected row in a GridView.
string grdid = Int32.Parse(Gridview1.SelectedRow.Cells[1].Text.ToString());

Dileep Kumar PatelPosted Oct 21, 2013, 2:19 PM
Its intial dear.
First LastPosted Mar 19, 2013, 9:15 PM
thanks dude, very simple :)