Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmDataGrid.OnMouseDown() problem
Message
De
22/01/2005 21:32:44
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MmDataGrid.OnMouseDown() problem
Divers
Thread ID:
00979739
Message ID:
00979739
Vues:
54
Hi Kevin,

1.3 Beta, mmDataGrid.OnMouseDown() seems to have 2 issues:

1) On my simple mmBusinessForm override I have MultiSelect = False. If I add a new row by clicking the New button and then Save it by clicking the save button the grid control, which is the navigation control, shows the new row only highlighted. That's fine. But when I mouse click on another row to select it this.OldSelectedRow holds the number of the row which was selected prior to clicking the new button. A trace of the code shows that this.OldSelectedRow is not being updated when a row is added.

2) If I add a new row, click another row, click back to the new row, delete the new row, then click to another row I get an array out of bound error when UnSelectRow calls
this.UnSelect(rowNum);
because rowNum doesn't exist. OldSelectedRow is not getting updated when a row is deleted either.

I was able to get around this by overriding mmDataGrid.RowChangedHandler() and adding this code to the bottom:

If Not Me.MultiSelect Then
Me.OldSelectedRow = e.CurrentRow
End If

Thanks,
Max...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform