[]
        
(Showing Draft Content)

C1.WinUI.Grid.GridCellFactory.GetCellKind

GetCellKind Method

GetCellKind(GridControlRange)

Gets a key that defines the type of cell content.

Declaration
public override sealed object GetCellKind(GridControlRange range)
Parameters
Type Name Description
GridControlRange range

The range.

Returns
Type Description
object

The returned object will be used as a key to recycle cell content´s

Overrides
Remarks

If null is returned, the cell will not be recycled, therefore the CreateCell(GridControlRange, object) method will be called for every rendered cell. Notice this will affect the performance negatively.

GetCellKind(GridCellType, GridCellRange)

Gets a key that defines the kind of cell content.

Declaration
public virtual object GetCellKind(GridCellType cellType, GridCellRange range)
Parameters
Type Name Description
GridCellType cellType

Type of the cell.

GridCellRange range

The range.

Returns
Type Description
object

The returned object will be used as a key to recycle the cell

Remarks

If null is returned, the cell will not be recycled, therefore the CreateCellContent(GridCellType, GridCellRange, object) method will be called for every rendered cell. Notice this will affect the performance negatively.