Solved

DBGID fixed with of fields possible?

Posted on 2008-09-29
3
248 Views
Last Modified: 2013-11-23
I have a dbgrid with 4 fields. When i manually set them in the designer, they all (with a margin) fit inside the dbgrid. When i execute, the fields grow slightly, and enough to not all fit inside the dbgrid, without scrolling. Can i tell the dbgrid to not change the with?
0
Comment
Question by:Sunsales
  • 2
3 Comments
 
LVL 13

Expert Comment

by:rfwoolf
ID: 22600662
There should be a property somewhere called something like "autosize" or whatever - I'll check when I load delphi in a moment - but setting this to false should help. Also make sure that your DBGrid isn't one of those fancy onese like TJvDBGrid where you can store the field properties in an INI file - so when the user runs the application the DBGrid's persistent fields are loaded (and stored) there.
0
 

Author Comment

by:Sunsales
ID: 22601507
Oh, i think i fond it. Its when the scrollbar adds in, after the second append. Can that be it?
0
 
LVL 13

Accepted Solution

by:
rfwoolf earned 250 total points
ID: 22601523
Hmmm I think the 'autosize' option is for JvDBGrid. In any case, if you double-click on your DBgrid to bring up the list of persistent fields, there is a 'Expanded' option. I think if you set this to 'True' then they do their own thing. Mine are set to false;
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question