TrDBGrid_MS hide sort sign

25 views
Skip to first unread message

enver penjo

unread,
Jul 29, 2022, 6:38:15 AM7/29/22
to Rosi Delphi Components
For some dbgrids i am using custom sorting by title click sort without TrDBGridSorter_FireDac
but on first column still exists sort sign near to filter sign.
How to hide it.
Thanks

Tomas Rosinsky

unread,
Jul 29, 2022, 7:16:09 AM7/29/22
to Rosi Delphi Components
Hi,
sorting glyph is defined by rDBGrid.SortFieldName property which is set automatically if sorter is used or can be set also manually in runtime or design time, then glyph is shown.

So simply clear this property to hide any sort marker.

    { Defines which columns has sort marker, supports MultiField (e.g. FirtsName,LastName) }
    property SortFieldName: string read FSortFieldName write SetSortFieldName;
    { Defines direction of sort marker }
    property SortDesc: boolean read FSortDesc write SetSortDesc default false;
    { Defines directions in case of multifield, A=Asc, D=Desc, e.g. A,D,A }
    property SortDirections: string read FSortDirections write SetSortDirections;
    { Defines sorter component - descendant of TrDBGridCustomSorter }
    property Sorter: TrDBGridCustomSorter read FSorter write SetSorter;

I hope it helps
Tomas
Dne pátek 29. července 2022 v 12:38:15 UTC+2 uživatel penj...@gmail.com napsal:

enver penjo

unread,
Jul 29, 2022, 9:57:06 AM7/29/22
to Rosi Delphi Components

Thanks
Reply all
Reply to author
Forward
0 new messages