Controlling column widths

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ada,str
Posts: 4
Joined: Fri 23 Oct 2009 23:25

Controlling column widths

Post by ada,str » Mon 26 Oct 2009 21:48

I have a TDBGrid in my application that is populated by a query that I've entered in the SQL property of a TOraQuery. I developed the query on our database host (Solaris 5.9, Oracle 10.2.0.3). On the host, I can use format commands to control the widths of the columns returned by the query. It appears that the format commands, ie: "column lname for a/25" does not work in TOraQuery. I've been searching for a way to control the widths of the colums returned by the query which populates the TDBGrid. So far, I've found nothing. Can anyone suggest a solution? Thanks.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 27 Oct 2009 08:05

Open Columns Editor for TDBGrid. Press the Add All Fields button. Then edit the Width property for columns.

ada,str
Posts: 4
Joined: Fri 23 Oct 2009 23:25

Post by ada,str » Tue 27 Oct 2009 19:19

I can open the column editor but the button to "add all fields" is grayed out and not clickable. How do I change that?

ada,str
Posts: 4
Joined: Fri 23 Oct 2009 23:25

Post by ada,str » Tue 27 Oct 2009 19:39

I've just found it - I've been able to edit the column widths now and the grid looks much better. Thanks for the tip!!

Post Reply