Solved

How to always see the first column of a DBGrid?

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
proper way to parse text with delphi 7 121
Print Graphic and Text to Epson TM-T88v 12 247
TEMBEDDEDWB how can i change its user agent ? 8 58
Delphi and Access based Enumeration 9 61
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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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