Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Locking Columns in a DBGrid

Posted on 1997-07-18
2
Medium Priority
?
406 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
[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
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 300 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

660 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