.aspx page
CommandArgument ='<%# DataBinder.Eval (Container, "RowIndex") %>'
.CS page (on row commond)int iRowIndex = Convert.ToInt32 (e.CommandArgum ent.ToString())
OR
Dim iRowIndex As Integer
iRowIndex = CType(CType(sen der, Control).Parent .Parent, GridViewRow).Ro wIndex
CommandArgument
.CS page (on row commond)int iRowIndex = Convert.ToInt32
OR
Dim iRowIndex As Integer
iRowIndex = CType(CType(sen