In RowUpdating Event,
RowIndex is coming Null,
and the error is...
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
GV.DataKeys[e.RowIndex].Value;
But Gridview loaded with data, with datakeys too.
What I have tried:
I have tried with Gridview data, Datakeys are there but i could n't find where the bug is...
I have tried the following links too...
http://www.codeproject.com/Questions/1105358/Html-drop-down-list-shows-past-dates-value
http://www.codeproject.com/Questions/414868/Index-was-out-of-range?tab=mostrecenthttp://www.codeproject.com/Questions/414868/Index-was-out-of-range?tab=mostrecent
http://stackoverflow.com/questions/5381670/index-was-out-of-range-error-in-gridview
http://forums.asp.net/t/1634281.aspx
But I cant find the solution.
Thanks in Advance.