e.rowindex in gridview
C#
2
Posts
2
Posters
0
Views
1
Watching
-
-
i click on a linkbutton added in gridview in ist row .its e.rowindex should generate value 0 but it is 1 as gridview loaded first time what could be the reason. I checked this at different events GridViewDeleteEventArgs & GridViewCommandEventArgs.
I'm just guessing here, but it might be because it is counting the column headers as row[0]. Anyway, does it matter, just use the value returned by e.RowIndex.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”