hi,
here is one of the way to get the row index of the grid
the sample code:
protected void grd_RowCommand(object sender, GridViewCommandEventArgs e)
{
int index = grd.PageIndex * grd.PageSize + Convert.ToInt32(e.CommandArgument);
}
Here command argument is like
CommandArgument='<%#Container.DisplayIndex%>'
Hope it will work