My users submitted the following "bug":
Clicking on column name to sort has a third “no sort” option, instead of just the ascending/descending sorts as expected.
Is it possible to disable the "no sort" option on a WinGrid?
Thanks,
Dmitriy.
Hi Dmitriy,
The WinGrid does not have functionality to allow a user to un-sort a column. Clicking a column header toggles the sorted state from ascending to descending and vice versa.
So if your grid is toggling to a third state where the data is unsorted, then something in your code must be doing that.
Just created a sample application and dragged a WinGrid (v 8.1) on the Form. Then I went to UltraWinGrid Designer -> Feature Picker -> Header Click Sort Action. There are 3 DummyColumns in the Preview pane. Clicking first time on the DummyColumn 0's header sorts the column ascending (arrow up). Clicking it the second time sorts the column descending (arrow down). Clicking it the third time removes the sorting on the column (no arrow).Can I disable the third state and leave just asc/desc options?
Thanks,Dmitriy.