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
UltraGrid provide 2 mode when click Header: Sort or Select Column
In order to disable Sor, set property HeaderClickAction = Select.Ex: UltraWinGrid.DisplayLayout.Override.HeaderClickAction = Select
If you dont want to Select column after set HeaderClickAction = Select, set property:
UltraWinGrid.DisplayLayout.Override.SelectTypeCol = None
Goodluck
Thanks. Worked like a charm.
Hi Felix,
I don't think this is possible. A double-click includes two clicks. So the control has no way of knowing that the first click is eventually going to be a double-click.
Hi,
I want to disable colum sorting when double click only. but I need sorting when single click event.
could it solve? How can it possible? please help me.
Thanks for your helps.
Thanks and Regards
Felix G.
Hi Pradeep,
There's no way to set the SortIndicator on a group of columns all at once. You would have to loop through the columns and set the SortIndicator on each one individually.
If you want to change what happens when use changes the sort indicator by clicking a column header, then what you would do is handle the BeforeSortChange event of the grid. In this event, you can example the current sort indicators on each column and see what is changing, then do whatever you want - such as adding additional sorted columns.
I have one more problem.How to give sort indicators to all the columns, when i click on one column header. When i click on 1st column header, sort indicators should be given to all the columns, sorting should be done based on this.
Regards,
Pradeep.