Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Locking Columns in a DBGrid

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Loops Section Overview
Suggested Courses

971 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