Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 19:35

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 08 Nov 2013, 11:34 
Offline

Joined: 14 Oct 2013, 08:27
Posts: 32
Hello, I can´t figure out how to solve this.
I allow my users to hide columns and to group data dragging columns to the data grouping panels.

When the form closes I save the grid's layout with GridEh1->SaveGridLayout. This layout is restored the next time the user enters the form.

My problem is this: if I have my data grouped when I exit the form and I enter the form again, the column I used to group the data does not show in the grid (it's set as invisible) but it does not appear either in the data grouping panel.

The code I use for restoring is:
Code:
      TDBGridEhRestoreParams RestoreParams=
        TDBGridEhRestoreParams() << grpColIndexEh << grpColWidthsEh << grpSortMarkerEh
                                 << grpColVisibleEh << grpRowHeightEh << grpDropDownRowsEh
                                 << grpDropDownWidthEh << grpRowPanelColPlacementEh;
      GridEh1->RestoreGridLayout(myIni, mySection, RestoreParams);


I haven´t been able to find a solution for this (just make ALL fields visible).
Could you please help me?

Thank you very much in advance. You have developed a great component.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 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