Solved

How to always see the first column of a DBGrid?

Posted on 2004-09-08
4
227 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
  • 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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