If you want Row Data OnClick of Button change your this line in the code
GridView grd = (GridView)((Button)sender).NamingContainer;
To
GridViewRow row = (sender as Button).NamingContainer as GridViewRow;
This will give you first cell
string name = row.Cells[0].Text;