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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...