Good morning,
Thank you for your reply and I am also sorry for confusion.
Here is what I have been doing:
- The project works as expected when using the function
SetColumnWidth. All columns are adjusted automatically based on the data length in the field
- Next I wanted to test the PropSave by doing:
1. Put the TPropSaveFile component in main form and set it: Compress + New_Name + UseAsGlobalFile
2. Put the TPropSaveMain and TrDBGridsPropSave components in the child form which contains the TrDBGrid_MS
3. Set
TPropSaveMain.PropSaveFile to the main form
4. Set TrDBGridsPropSave.Components with the name of TrDBGrid_MS
5. Set
TrDBGridsPropSave.OnReadSavePropProp as it is used in your demo
6. Run the project
7. All columns are appeared to be adjusted by
SetColumnWidth function
8. Manually change some column widths
9. Exit project
10. Check the PropSaveFile file in step 1 to be sure it stores some data of rDBGrid
11. Re-run the project.
12. The rDBGrid keeps the columns widths as step 7. In fact, it should change to what I have done in step 8 as expected
Please kindly advise.