Isnt it that simple? gridview.SelectedRow.index or CUrrentRowIndex mus work. Doesnt it>?