Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmDataGrid.RowChangedHandler
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MmDataGrid.RowChangedHandler
Divers
Thread ID:
00992186
Message ID:
00992186
Vues:
56
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
Fil
Voir

Click here to load this message in the networking platform