I want my grid to be sorted by one column and one column only. The grid should always be sorted in the same way and not allow any other sorting. How do I go about this?
Thanks
The best thing to do would probably be to sort your data, rather than sorting through the grid. But if you can't so that, then try setting the SortIndicator on the column you want to sort to Ascending or Descending. Then set it to disabled afterward.
Yes. Perfect. That works.
Just the sorting programmically remains.
To prevent the user from sorting the grid, try this:
First, disable all sorting by setting this property
Optionally, you may also want to make columns unselectable:
ultraGrid1.DisplayLayout.Override.SelectTypeCol = SelectType.None;