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

Click here to load this message in the networking platform