Page 1 of 1

Controlling column widths

Posted: Mon 26 Oct 2009 21:48
by ada,str
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.

Posted: Tue 27 Oct 2009 08:05
by Plash
Open Columns Editor for TDBGrid. Press the Add All Fields button. Then edit the Width property for columns.

Posted: Tue 27 Oct 2009 19:19
by ada,str
I can open the column editor but the button to "add all fields" is grayed out and not clickable. How do I change that?

Posted: Tue 27 Oct 2009 19:39
by ada,str
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!!