Gridview – Getting the RowIndex
Dec 13
ASP.NET Comments Off
The following syntax sets the rowindex equal to the specific row number:
int rowindex = ((GridViewRow)((Control)e.CommandSource).Parent.Parent).RowIndex;
Dec 13
ASP.NET Comments Off
The following syntax sets the rowindex equal to the specific row number:
int rowindex = ((GridViewRow)((Control)e.CommandSource).Parent.Parent).RowIndex;