[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.CellFactory

CellFactory Class

Class that implements the default cell factory for a C1FlexGrid.

Inheritance
CellFactory
Namespace: C1.WPF.FlexGrid
Assembly: C1.WPF.FlexGrid.4.6.2.dll
Syntax
public class CellFactory : ICellFactory, ICustomCellRender
Remarks

If you need to create custom cells, then you have to create a class that implements the ICellFactory interface and assign an instance of that class to the CellFactory property.

Constructors

Name Description
CellFactory()

Methods

Name Description
ApplyCellStyles(C1FlexGrid, CellType, CellRange, Border)

Allows derived classes to finish customizing cells after they have been created and all styles have been applied.

ApplyHoverStyle(C1FlexGrid, CellType, CellRange, Border, GridMouseOverMode)
CreateBottomLeftContent(C1FlexGrid, Border, CellRange)

Sets the content of a Border element used to display the value of the bottom left cells.

CreateCell(C1FlexGrid, CellType, CellRange)

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

CreateCellBorder(C1FlexGrid, CellType, CellRange)

Creates a Border element that represents the background and border of a grid cell and contains the cell data.

CreateCellContent(C1FlexGrid, Border, CellRange)

Sets the content of a Border element used to display the value of a data cell.

CreateCellContentEditor(C1FlexGrid, Border, CellRange)

Sets the content of a Border element used to display the value of a data cell.

CreateCellEditor(C1FlexGrid, CellType, CellRange)

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

CreateColumnFooterContent(C1FlexGrid, Border, CellRange)

Sets the content of a Border element used to display the value of a column footer cell.

CreateColumnHeaderContent(C1FlexGrid, Border, CellRange)

Sets the content of a Border element used to display the value of a column header cell.

CreateRowHeaderContent(C1FlexGrid, Border, CellRange)

Sets the content of a Border element used to display the value of a row header cell.

CreateTopLeftContent(C1FlexGrid, Border, CellRange)

Sets the content of a Border element used to display the value of a row header cell.

DisposeCell(C1FlexGrid, CellType, FrameworkElement)

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

GetBorderThickness(C1FlexGrid, CellRange)

Gets a Thickness value that represents the thickness of the cell borders.

GetCellPadding(C1FlexGrid, GridPanel, CellRange)

Gets a Thickness value that specifies the padding applied between the edge of the cell and its content area.

GetErrorImage()

Gets a BitmapImage used to indicate that a data item has one or more errors.

GetSortDirection(ref CellRange, C1FlexGrid)

Get column sort direction

IsSortSymbolRow(C1FlexGrid, CellRange)

Gets a value that determines whether to display sort symbols on a given a column header row.

RequireMeasureByLayout()

This method will be used to check the cell content is customized or not.

SetErrorTip(C1FlexGrid, Border, string)

Sets an error tooltip on a cell, honoring the grid's ErrorStyle property.