Button btn = (Button)sender; GridViewRow row = (GridViewRow)btn.NamingContainer; GridView.SelectedIndex = row.RowIndex;
level_ID = row.Cells[0].Text;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)