Jump to content

UniDBGRID Column Width


diegojmap

Recommended Posts

On 12/12/2019 at 6:02 AM, diegojmap said:

Good night.
When a unidbgrid does not have columns defined I use a variable SQL.
What defines the width of the column?
I have several cases where the field is truncated.

Hello,

Sorry for the late reply.

Which DB are you using?

Link to comment
Share on other sites

Belo.
Good idea.
It was an output, I managed to create each column and determining the size.
   dbg1.Columns.clear;
   dbg1.Columns.add;

   dbg1.Columns [0] .FieldName: = 'INSCRICAO';
   dbg1.Columns [0] .Alignment: = taLeftJustify;
   dbg1.Columns [0] .Width: = 200;
   dbg1.Columns [0] .Title.Caption: = 'Inscrição';
   dbg1.Columns [0] .Title.Alignment: = taLeftJustify;

   dbg1.Columns.add;
   dbg1.Columns [1] .FieldName: = 'ENDERECO';
   dbg1.Columns [1] .Alignment: = taLeftJustify;
   dbg1.Columns [1] .Width: = 200;
   dbg1.Columns [1] .Title.Caption: = 'Endereço';
   dbg1.Columns [1] .Title.Alignment: = taRightJustify;

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...