VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > FrozenCols Property |
Returns or sets the number of frozen (editable but non-scrollable) columns.
[form!]VSFlexGrid.FrozenCols[ = value As Long ]
Cells in frozen columns can be selected and edited, but they remain visible when the user scrolls the contents of the control horizontally.
Freezing columns is useful when the grid is used as a data browser. It allows users to user to scroll the contents of the control while keeping the FrozenCols leftmost columns visible. If you set the AllowUserFreezing property to a non-zero value, the may freeze or thaw columns at run time by dragging the solid line between the frozen and scrollable areas of the grid.
You may customize the appearance of the frozen areas of the grid using the BackColorFrozen and ForeColorFrozen properties. The solid line between the frozen and scrollable areas of the grid is drawn using the color specified by the SheetBorder property.
Long
0