Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmDataGrid.RowChangedHandler
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
MmDataGrid.RowChangedHandler
Miscellaneous
Thread ID:
00992186
Message ID:
00992186
Views:
57
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
Map
View

Click here to load this message in the networking platform