jaymeen patel

jaymeen patel

  • NA
  • 6
  • 13.3k

Get row index in row command event

Jan 11 2011 8:19 AM


GridViewRow row = (GridViewRow)((Control)e.CommandSource).Parent.Parent;
int i=row.RowIndex;

you can also find all controls in obtained "gridviewriw" object

thatnk you,
jaymeen patel

Answers (2)