protected void MyGridview_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName.ToString() == "FindValue") { GridViewRow row = ((GridView)e.CommandSource).Rows[Convert.ToInt32(e.CommandArgument)]; string id = ((Label)(row.FindControl("label1"))).Text; string name = ((Label)(row.FindControl("Label2"))).Text; } }