I am trying to read gridview column through the following code
protected void gdOrderdetails_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
string name1;
GridViewRow name = gdOrderdetails.SelectedRow;
name1 = name.Cells[1].Text.ToString();
Response.Write(name1);
}
It's giving error "Object reference not set to an instance of an object."
Pls help me out
Thanks in advance