Contents - Index - Previous - Next


FixedRows property



Applies to
TProfGrid component

Declaration
property FixedRows: Integer;

Description

Specifies the number of visible rows on the top of the grid that cannot be scrolled.

Set FixedRows to create or get rid of nonscrolling rows. Nonscrolling rows appear at the top of the grid, and are always visible, even when the user scrolls the other rows in the grid. Use nonscrolling rows for displaying column titles, or to implement a scroll lock that the user can set.

Nonscrolling rows are visually distinct from the scrollable rows in the grid. They are painted with a separate background color specified by the FixedColor property, and their cells have a raised, 3-D look if the Ctl3D property of the grid is True.

Tip:  Usually the TCustomGrid-descendent components must include at least one scrolling row, but in TProfGrid you can set FixedRows to the value of RowCount.