Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement