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.