Overview

Freeze columns to keep them visible while scrolling horizontally - just like Excel's freeze panes. Supports sticky row numbers, freezing first N columns, or marking individual columns as frozen.

FP01 Frozen Columns Demo

Scroll horizontally to see frozen columns stay in place. The row numbers and first columns are frozen.

Freeze First N Columns
 

FP02 Column-Level Frozen Property

Individual columns can be marked as isFrozen: true. Frozen columns automatically move to the left side, regardless of their definition order.

Visual Reorder: In this example, the "Status" column is defined last in the columns array but has isFrozen: true, so it appears first (after row numbers).
Column-Level Frozen
 

API Reference

Grid Properties

PropertyTypeDefaultDescription
isRowNumbersVisiblebooleanfalseShow row number column on the left
isStickyRowNumbersbooleanfalseMake row number column sticky (frozen)
freezeColumnsnumber0Number of columns to freeze from the left

Column Properties

PropertyTypeDefaultDescription
isFrozenbooleanfalseMark column as frozen (moves to left automatically)
widthstring-Explicit width recommended for frozen columns
Best Practices
  • Explicit widths: Always set explicit widths on frozen columns for consistent behavior
  • Shadow indicator: A subtle shadow appears on the right edge of frozen columns when scrolling
  • Accent tint: Frozen column headers have a subtle tint to visually distinguish them
  • Frozen columns cannot be reordered: Drag-to-reorder is disabled for frozen columns
  • Row numbers: When isStickyRowNumbers is enabled, row numbers are always frozen regardless of freezeColumns

CSS Variables

VariableDefaultDescription
--wg-frozen-column-shadow-gradientlinear-gradient(to right, ...)Shadow gradient on the edge of frozen columns
--wg-frozen-column-shadow-width8pxWidth of the frozen column shadow

Frozen columns can also be managed via the header context menu using the 'freezeColumn' and 'unfreezeColumn' predefined items.