Type | Description | |||
Long | A long expression that indicates the number of locked columns. |
By default, the CountLockedColumns property is 0 (no locked columns), meaning no columns are locked and the property has no effect. The CountLockedColumns property allows locking columns on both sides using a single byte: the low 4 bits set left-locked columns, and the high 4 bits set right-locked columns. The CountLockedColumns property only applies to visible columns; hidden columns are not counted or locked. Previously, only left-side locking was supported. The Visible property specifies whether the column is visible or hidden. The ColumnAutoResize property enables or disables the automatic adjustment of column widths to match the available space (allow horizontal scroll-bar)
The control supports two types of columns: locked and unlocked.
The CountLockedColumns property controls the number of locked columns on both sides of the view using a single byte in {high, low} format:
For instance:
To customize the appearance of the locked areas:
Note: If CountLockedColumns property is set to 0 (no locked columns), the locked area is not displayed, and BackColorLock and ForeColorLock have no effect.
Additional options:
The following screen shot shows the control when CountLockedColumns property is 0 (no locked columns):
The following screen shot shows the control when CountLockedColumns property is 17(0x11) (locks the first and last visible columns):