DataKeyNames="Id,Name" string IdValue=MyGrid.DataKeys[RowIndex].Values["Id"].ToString(); string name=MyGrid.DataKeys[RowIndex].Values["Name"].ToString();
Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/s6vLs8WFuxw/14551