Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread How to disable auto-sorting for data-bound grid?
Wed, Nov 16 2016 8:58 AMPermanent Link

Ivan Mihailov

Hi,

Is there any way to disable auto-sorting for data-bound grid
(when you click on grid column headers)?

Would be fine if TGrid component has a property 'Autosort' (true/false),
to enable/disable auto-sorting.

Thanks,
Ivan Mihailov
Wed, Nov 16 2016 11:31 AMPermanent Link

Uli Becker

Ivan,

> Is there any way to disable auto-sorting for data-bound grid
> (when you click on grid column headers)?

Not sure what you mean by "Auto-sorting", but you can set earch column's
SortDirection property to sdNone or Header | AllowClick to false.

Uli
Wed, Nov 16 2016 11:57 AMPermanent Link

Ivan Mihailov

GridColumn.Header.AlowClick is what i missed,

thanks Uli,

Ivan


Uli Becker wrote:

Ivan,

> Is there any way to disable auto-sorting for data-bound grid
> (when you click on grid column headers)?

Not sure what you mean by "Auto-sorting", but you can set earch column's
SortDirection property to sdNone or Header | AllowClick to false.

Uli
Image