Hello again.
I figured out that I can use RxDBGrid's OptimizeColumnsWidthAll method to automatically adjust columns width proportionally to its content.
But, I experienced strange behavior of that method with persistent columns based on Firebird ZQuery dataset. Columns are adjusted to the database field size, not to actual field's content. For example, if a field is VARCHAR(255), the corresponding RxDBGrid column will be 255 characters wide, although actual content of cells are much shorter than 255 characters !?
If I use dynamically created columns, autoadjustment works correctly.
Just to mention, CheckBox columns in DBGrid don't function correctly in current Lazarus 0.9.23 fpc 2.2.1 snapshot. There's no checkbox in a grid, only blank uneditable cell...I hope Lazarus developers already know that...
Regards,
Zlatko