[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.ICellFactory

ICellFactory Interface

Defines the functionality of classes used to create grid cells dynamically.

Namespace: C1.WPF.FlexGrid
Assembly: C1.WPF.FlexGrid.4.6.2.dll
Syntax
public interface ICellFactory
Remarks

The C1FlexGrid fully virtualizes rows and columns. Cells are created only when their row and column are visible to the user. In this case, a class that implements the ICellFactory interface is used to create the FrameworkElement objects that represent the cells. When cells are scrolled out of view, the same class is notified so it can properly dispose of the cell or recycle it for future use.

Methods

Name Description
CreateCell(C1FlexGrid, CellType, CellRange)

Creates a FrameworkElement responsible for representing a grid cell of a given type at the given coordinates.

CreateCellEditor(C1FlexGrid, CellType, CellRange)

Creates a FrameworkElement responsible for editing the value in a grid cell at the given coordinates.

DisposeCell(C1FlexGrid, CellType, FrameworkElement)

Disposes of a FrameworkElement when its associated cell is scrolled out of view.