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
Get row index in row command event
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Madhu KRank #1,514 · 1.1K reputationPosted Jan 11, 2011, 6:47 PM EST
narasimman g146 reputationPosted Jan 11, 2011, 8:00 PM EST
I checked with his solution !! it works!!!
Hi Jaymeen,
Only questions have to be posted here!!!