I am using the GridView - AutoGenerateSelectButton = \"True\"
to select the row in order to get the Column 1 cell value.
I have tried:
I suggest you use a HiddenField inside template field use FindControl to find this field.
ie:
ASPX
Code behind
protected void gvAttachments_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
GridView gv1 = (GridView)sender;
GridViewRow gvr1 = (GridViewRow)gv1.Rows[e.RowIndex];
//get hidden field value and not directly from the GridviewRow, as that will be null or empty!
HiddenField hf1 = (HiddenField)gvr1.FindControl("hfFname");
if (hf1 != null)
{
..
}
}