TCRDBGrid field width not the same in design time and runtim

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
nokib8
Posts: 11
Joined: Thu 06 May 2010 21:46

TCRDBGrid field width not the same in design time and runtim

Post by nokib8 » Wed 19 May 2010 11:09

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

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Thu 20 May 2010 11:34

Hello

Please specify which data grid do you use.

nokib8
Posts: 11
Joined: Thu 06 May 2010 21:46

Post by nokib8 » Fri 21 May 2010 21:34

The grid used is TCRDBGrid.
Used with D2009, Win7, Firebird and UniDAC components UniProvider, UniConnection, UniQuery, UniDataSource and finally the grid mentioned.

:)
Kai Inge

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 25 May 2010 11:59

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.

Post Reply