Call me stupid but I can't seem to track down the property to disable column sorting. I dont want users to be able to use this feature.
A hint please?
Many thanksJason
Hi Matt,
Thanks for the reply. This is working fine for me.
Regards,
Pradeep
Pradeep,
If you want to reset the sorted columns when unloading then reloading your data, you will simply need to clear the sorted columns, i.e.:
this.ultraGrid1.DisplayLayout.Bands[0].SortedColumns.Clear();
-Matt
Hi Mike,
This is pradeep. I am having one issue with Ultrawingrid regarding sorting. When the data is loaded for the first time, when i click on column header, it is sorting correctly. But the problem is, when the data is unloaded, this sorting(column sorting) is still enable, which means when i load the data once again, it is displaying data in sorted order(Taking previous column header click as reference). "When the data is unloaded, i need sorting to be disabled, which means after the data is loaded again, data should be sorted when we click on column header again." I have used the above mention method for sorting the data. So please give me a solution.
Glad you found it.
I meant using the Load method on the grid's DisplayLayout.
I found it! You were right Mike, the properties were re-set in code.
Thank you guys, dahrlin :-)