65.9K
CodeProject is changing. Read more.
Home

Index of current row in gridview - RowCommand event

starIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIconemptyStarIcon

1.80/5 (4 votes)

Mar 9, 2010

CPOL
viewsIcon

41980

GridViewRow row = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);int selIndex = row.RowIndex;

GridViewRow row = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer); int selIndex = row.RowIndex;