I'm missing some features around the sorting capabilities of NextGrid:
1. Disable/Enable Sorting temporarily
Okay, there is a way to iterate through the columns and disable sorting. This requires me to keep in mind, which one was sorted, how it was sorted and so on.
Well, NG already knows all these facts. A simple Boolean property "EnableSorting" would to the trick, too. Put in the right place, NG doesn't even need to remember the sorted column... This property should be "on top" - if EnableSorting=false, no sorting occurs except sorting on Header click. Switching from "false" to "true" does not execute a sorting-cycle - see Number 3 down below.
2. Automatic sort on "Add"/"Insert"
When adding/inserting a new Row into NG, it is always placed at the last position, NG dosen't care about sorting-state of any column. An automatic Sort-cycle would be nice.
I'm not sure if sorting can be accomplished automatically, as AddRow simply adds an empty row, which is bad for sorting. To solve this problem, we come to
3. Let me tell NG, when to sort
As automatic sorting may be impossible to implement, a simple call to "ReSort" and NG uses its fast routines to resort the Grid. This one would come in handy, too - in combination with BeginUpdate and EndUpdate to keep up the speed on bulk inserts.
If all this already exists - tell me, where and how. I haven't digged it out then.











