Solved

Locking Columns in a DBGrid

Posted on 1997-07-18
2
400 Views
Last Modified: 2010-04-03
We have a need to freeze columns in a DBGrid much like the functionality MS-Excel provides.  Essentially, when the user scrolls over to the right to see additional columns, we want to prevent certain key columns from scrolling off the display.  Powerbuilder allows a scroll lock.  How can we accomplish this in Delphi 3 ?  
0
Comment
Question by:rmeeker
  • 2
2 Comments
 
LVL 5

Expert Comment

by:ronit051397
ID: 1339269
This qustion was allready asked by Millerw on 24/06.
0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 100 total points
ID: 1339270
There is a property in the DBgrid which called FixedCols.
Since this property is in the protected level, you need to declare it as public or published. Therefore you need to create a new component, derived from dbgrid and make a redeclaration.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

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…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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…

772 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