General information
Category:
The Mere Mortals .NET Framework
Title:
MmDataGrid.RowChangedHandler
Kevin,
I am getting IndexOutOfRange exception in mmDataGrid.RowChangedHandler
if (this.IsSelected(e.LastRow)){ <-- Here
this.UnSelectRow(e.LastRow);
this.SelectRow(e.CurrentRow);
}
To reproduce:
1. Debug/Exceptions/CLR Exceptions - Break into debugger
2. Run sample application and go to Lists/Employee
3. Hit new button
Two things are not quite right:
1. CurrentRow is set to the last row (as the matter of fact the first row was selected at the very beginning, not the last)
2. LastRow has value of -1 and IsSelected method does not like that
Regards,
Nick Chakarov
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only