Главная страница | назад





Article #17350: DBGrid fixed leftmost column

 Question and Answer Database
FAQ2350D.txt DBGrid fixed leftmost column
Category :Miscellaneous
Platform :All
Product :Delphi 3.x
Question:
How do I make the leftmost column in my DBGrid fixed, so it
stays when I scroll left and right in the grid?
Answer:
Declare a type THack = class(TDBGrid). Then in run-time, do
THack(DBGrid1).FixedCols := 2. Of course, you'd have to set it
to 1 if you exclude dgIndicator from the Options in the grid
component.
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99