[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
The number of fixed columns in the grid.
Source position: grids.pas line 1253
protected property TCustomGrid.FixedCols : Integer |
FixedCols is an Integer property with the fixed column count for the grid. Fixed columns are displayed on the left edge of the grid and become part of the non-scrolled area for the control. A fixed column is displayed using the background color in FixedColor and separator lines using FixedGridLineColor. They are also rendered using the display style attributes in TitleStyle.
Values in a fixed column cannot be selected or edited using a cell editor at run-time. They can be modified, however, in descendent classes like TStringGrid by assigning values directly to the Cells property for the required column number.
The default value for the FixedCols property is 1 and causes the first column (column 0) (the one reserved for row indicators or automatic row numbering) to always be visible on the left edge of the control. Cell data in adjacent column can be converted to fixed column by incrementing the value for the property.
Setting a new value for the property causes several actions to be performed for the grid control.
Use FixedRows to get or set the number of fixed rows displayed for the grid control.
Use the Columns property to maintain column definitions for the non-fixed columns on the control. If a column definition in Columns needs to be changed to a fixed column, it must be removed from the Columns collection before increasing the value in FixedCols. An Exception is raised if FixedCols + Columns.Count does not match the value in ColCount.
|
Number of the fixed rows in the grid. |
|
|
Number of columns in the grid. |
|
|
Definitions for the columns displayed the grid. |
Version 3.2 | Generated 2024-02-25 | Home |