Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 07 Sep 2024, 17:30

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 26 Jun 2024, 06:48 
Offline

Joined: 31 Jul 2023, 07:34
Posts: 12
How can I sort DBLookUpComboBox sorting data by click column title?

ListSource and DropDown.ListSource is add Datasource.
DropDownBox.ColumnDefValues.Title.TitleButton := True;
DropDownBox.Columns (all columns) Title.TitleButton := True;
DropDownBox.Columns (all columns) Title.SortMarker:= smDownEh;

The list is not sorting, but clivk column title, sort marker is change, but not sort!

Thanks!


Top
 Profile  
 
PostPosted: 27 Jun 2024, 00:10 
Offline

Joined: 08 May 2014, 18:06
Posts: 674
Sorting in a drop-down list is configured in the same way as in the DBGrid.

https://www.ehlib.com/online-help/EhLib ... -data.html
https://www.ehlib.com/online-help/EhLib ... -data.html

TDBLookupComboboxEh.DropDownBox.Options = [dlgAutoSortMarkingEh]

Also For automatically filtering/sorting data in dataset you need to add one of the units EhLibXXX (EhLibADO, EhLibBDE, EhLibCDS ... depend on the type of dataset where the grid is linked to) to uses clause of any unit of your project.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group