Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 18 Apr 2024, 18:27

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 15 Aug 2020, 10:37 
Offline

Joined: 05 Jul 2020, 05:28
Posts: 1
Hi there

I use TDBGridEh in my programs and it works fine (I appreciate for that). but somewhere smDownEh is not working. I guess some default properties are changed.
I have the following DBGridEh's properties setup:

DBGridEh.ColumnsDefValues.Title.TitleButton:= True
DBGridEh.OptionsEh.dghAutoSortingMarking:= True;
DBGridEh.OptionsEh.dghMultiSortingMarking:= True;
DBGridEh.SortLocal:= False; {Server Sort}


But by clicking on the title, the table sorts in ASC mode. And there is no sorting indicator on the title too.
What is wrong with me?


Top
 Profile  
 
PostPosted: 17 Aug 2020, 21:45 
Offline

Joined: 08 May 2014, 18:06
Posts: 663
Hello

If you have dynamic columns in the grid and SortLocal:= False
then you reopen query when sort changed and it recreates columns in the grid and the sort icons are lost when deleting old columns.
Try to create columns (Persistent columns) at design-time.

_________________
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 7 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