?
Solved

DBGID fixed with of fields possible?

Posted on 2008-09-29
3
Medium Priority
?
273 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:Paer Toernell
  • 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:Paer Toernell
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 1000 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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

840 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