Solved

DBGID fixed with of fields possible?

Posted on 2008-09-29
3
241 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now