Page 1 of 1

TCRDBGrid field width not the same in design time and runtim

Posted: Wed 19 May 2010 11:09
by nokib8
Hello.

I set the width for a persistent field in the grid to 60, default width is 150.
In the grid at designtime I see the selected width 60.
When I run the thing it's back to the default width 150.

How can I force the grid to reflect the changes also in runtime?

:)
Kai Inge

Posted: Thu 20 May 2010 11:34
by bork
Hello

Please specify which data grid do you use.

Posted: Fri 21 May 2010 21:34
by nokib8
The grid used is TCRDBGrid.
Used with D2009, Win7, Firebird and UniDAC components UniProvider, UniConnection, UniQuery, UniDataSource and finally the grid mentioned.

:)
Kai Inge

Posted: Tue 25 May 2010 11:59
by Dimon
To solve the problem you should create columns of DBGrid in designtime using the TCRDBGrid.Columns property editor and press the "Add All Fields" button. Or you can set the TField.DisplayWidth property.