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
Solved

How to always see the first column of a DBGrid?

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

792 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