TrDBGrid rDBGrid Editor... customization is not persisted

15 views
Skip to first unread message

Péter Ádám

unread,
Mar 2, 2025, 10:44:34 AMMar 2
to Rosi Delphi Components
Hello,

Using right click, rDBGrid Editor... on a TrDBGrid does not persist the customization. Looks like every column is re-created when the dataset is closed and opened - even in design-time.

However, if I edit the column titles in the dataset designer, those changes persist. Interesting enough, in the TrDBGrid component, too.

Dataset fields are persistent in the Zeos query component.

Changes made with the rDBGrid editor in the DFM file:

Képernyőkép 2025-03-02 162341.png

Changes made in the Zeos query fields seen in another rDBGrid in the DFM file (see: columns = < appears):

2025-03-02 16_26_11-Window.png

The first DFM file looks like this in the designer and in runtime:

2025-03-02 15_49_59-.png

2025-03-02 16_03_57-Window.png

Should be there a Save button, or something else is missed?

Best regards,
Peter

Tomas Rosinsky

unread,
Mar 2, 2025, 11:04:30 AMMar 2
to Rosi Delphi Components
Hi,

if you open dataset in design time then empty linked DBGrid creates column automatically for all fields, but in this case columns are not persistent. It is standard behavior of any DBGrid.

You have to add dataset fields and then keep dataset closed and add columns to DBGrid, in this case columns are persistent and all setting is kept.

You can use my PropertySaver to store all grid and column setting in runtime.

Tomas

Dne neděle 2. března 2025 v 16:44:34 UTC+1 uživatel lape...@gmail.com napsal:
Reply all
Reply to author
Forward
0 new messages