Solved

DBGID fixed with of fields possible?

Posted on 2008-09-29
3
253 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

749 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