Solved

How to always see the first column of a DBGrid?

Posted on 2004-09-08
4
236 Views
Last Modified: 2010-04-05
Hi,

  Id like to know if its possible to always see the first column on a DBGrid even when we move the scrollbar horizontally to see the other column? I got 20 column and i want to see the equipment number (first column) even when i check the last column.

Thanks for your help
0
Comment
Question by:sierra20
[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
4 Comments
 
LVL 27

Assisted Solution

by:kretzschmar
kretzschmar earned 60 total points
ID: 12006455
phew,
i know only an ugly hack,
best would be to look for a third-party component,
where you can adjust the fixed-columns

search at www.torry.net

meikl ;-)
0
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 65 total points
ID: 12006699
one "ugly hack" from me :)))

use 2 DBGrids assigned to the same DataSet. Set their position as you want. In the first grid show the first column (the one you want to see). For the second one - remove the Indicator from options and show all other columns.

you can put Splitter between both DBGrids if you want to be able to resize the "first column"
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 12006736
>one "ugly hack" from me :)))

i would not say that this is an ugly hack,
its more an ugly workaround :-)))

and phew, don't let the user change the systemfont to large or small
(just in case that a systemfont is used in the grid)

meikl ;-)
0
 

Author Comment

by:sierra20
ID: 12007475
Thanks both for the fast answers.

   The way Ivanov do it is good for what i have ask. It would work perfectly. But i thinks i check on Torry like meikl said and find a third-party component with more flexibility that the original DBGrid.
Thats why i split the point.

Thanks again.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

728 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