[]
        
(Showing Draft Content)

Column Pinning

FlexGrid allows you to pin columns to the left of the grid so they remain visible as you scroll the grid horizontally. Pinning the columns adds pin glyphs to the column headers and clicking the pin glyph freezes (or unfreezes) the columns. To pin columns in FlexGrid, you can use PinningType property of the FlexGrid class. This property accepts value from the PinningType enumeration, which are described as follows:

  • None : This values does not allow pinning columns
  • SingleColumn : Allows pinning and unpinning one column at a time
  • ColumnRange : Allows pinning and unpinning column ranges
  • Both : Allows pinning and unpinning single columns or column ranges. This can also be achieved using the Shift key.

Pinning a range of columns

To pin a column range in FlexGrid, use the following code. This example uses the sample code used in Quick Start.

.PinningType(PinningType.ColumnRange)