2
Answers

Get row index in row command event

jaymeen patel

jaymeen patel

13y
2.8k
1


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)