Index of current row in gridview - RowCommand event
GridViewRow row = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);int selIndex = row.RowIndex;
GridViewRow row = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);
int selIndex = row.RowIndex;