Hello,
I am using a GridGroupingControl bound to a strongly-typed entity collection as the datasource; the grid is set up as "TableOptions.ListBoxSelectionMode = SelectionMode.One". I have several columns sorted by default on the grid, and changes to the data generally result in a sort and re-display of the data, albeit with some UI issues.
I have attached a sample to facilitate reproducing my issues. Please reload the form when attempting to replicate, as the steps assume a fresh instance.
First Issue
1) Move to Row 5
2) Click the "Is Active" checkbox
3) Move to Row 4
Notice that both Row 4 (which has moved into position 5) and Row 3 (which has moved into position 4) are selected. I would like only Row 4 to maintain selection. I can achieve partial results by handling the "SelectedRecordsChanging" event and cancelling when appropriate, but the CurrentCell is moving off of the selected row.
Second Issue
1) Move to Row 1
2) Change the First Lookup Combo to the last item
3) Move to Row 2
Note that even though sorting is enabled on the target column, the sort does not occur. If I modify the checkbox columns (which are known to trigger a sort from the first issue), then the grid resorts, but the value which has been modified seems to have no bearing on the sort results. I would like the records to resort appropriately on "SelectedRecordsChanged" and maintain a single record selection. I have attempted to use the "Table.SimulateListChanged()" method, but I receive inconsistent behavior or end up with multiple records selected, as identified in the first issue.
Any help on these issues is appreciated.
Thanks.
GGC_Sorting.zip