[]
        
(Showing Draft Content)

C1.WPF.Grid.GridCellFactory

GridCellFactory Class

Implements the functionality to create grid cells dynamically.

Inheritance
GridCellFactory
Namespace: C1.WPF.Grid
Assembly: C1.WPF.Grid.dll
Syntax
public class GridCellFactory
Public Class GridCellFactory

Constructors

Name Description
GridCellFactory()

Initializes a new instance of the GridCellFactory class.

Properties

Name Description
AllowCustomCells

When set to true the methods GetCellKind(GridCellType, GridCellRange), CreateCell(GridCellType, GridCellRange, object), BindCell(GridCellType, GridCellRange, GridCellView) and UnbindCell(GridCellType, GridCellRange, GridCellView) will be called allowing customized cells, inheriting from GridCellView.

AllowCustomToggleButton

Gets or sets whether the toggle-button for group rows are handled by this cell-factory.

CellsColumnsCount

Gets the number of columns belonging to the cells area.

CellsRowsCount

Gets the number of rows belonging to the cells area.

ColumnFooterRowsCount

Gets the number of rows belonging to the column footers area.

ColumnHeaderRowsCount

Gets the number of rows belonging to the column headers area.

Grid

Gets the associated grid.

IsCellSelection
IsColumnSelection
IsMouseOverEnabled
IsMultiRangeSelection
IsMultipleSelection
IsRowSelection
IsSelectionEnabled
RowHeaderColumnsCount

Gets the number of columns belonging to the row headers area.

SelectionMode

Methods

Name Description
AllowCustomCell(GridCellType, GridCellRange)

Gets whether custom cells are allowed for the specified range.

AllowEditing(GridCellRange)

Returns true when the cell in the specified range can be edited.

ApplySelectionState(GridCellType, GridCellRange, GridCellView)

Applies the selection brushes.

BindCell(GridCellType, GridCellRange, GridCellView)

Binds the the cell.

BindCellContent(GridCellType, GridCellRange, FrameworkElement)

Binds the content of the cell.

CanDragColumn(GridRowColType, int, GridRowColType, int)

Determines whether the column can be drag.

CanDragRow(GridRowColType, int, GridRowColType, int)

Determines whether the row can be drag.

CanDropColumn(GridRowColType, int, int)

Determines whether a column can be dragged to the specified position.

CanDropRow(GridRowColType, int, int)

Determines whether a row can be dragged to the specified position.

CanSetColumnWidth(GridRowColType, int)

Determines whether the with of a column can be set.

CanSetRowHeight(GridRowColType, int)

Determines whether the height of the row can be set.

CreateCell(GridCellType, GridCellRange, object)

Creates the cell.

CreateCellContent(GridCellType, GridCellRange, object)

Creates the content of the cell.

CreateCellEditor(GridCellRange)

Creates the cell editor.

DropColumnAsync(GridRowColType, int, int)

Drops the column from the original index from to the index to.

DropRowAsync(GridRowColType, int, int)

Drops the row from the original index from to the index to.

GetCellContentType(GridCellType, GridCellRange)

Gets a key that defines the type of cell content.

GetCellKind(GridCellType, GridCellRange)

Gets a key that defines the kind of cell content.

GetCellText(GridCellType, GridCellRange)

Gets the text representing the content of a cell.

GetColumnInfo(GridRowColType, int)

Gets the dimensions for the specified column.

GetDefaultColumn()

Gets the default column dimensions.

GetDefaultRow()

Gets the default row dimensions.

GetFrozenBottomRows()
GetFrozenColumns()
GetFrozenRightColumns()
GetFrozenRows()
GetHoverRange(int, int)
GetMergedRange(GridCellType, GridCellRange)

Gets the cells range after merging with neighbor cells.

GetRowInfo(GridRowColType, int)

Gets the dimensions for the specified row.

GetSelectedTimes(GridControlRange)
GetSelectionRange(GridControlRange)
IsBottomFreezingSeparatorVisible()
IsLeftFreezingSeparatorVisible()
IsRightFreezingSeparatorVisible()
IsTopFreezingSeparatorVisible()
OnCellDoubleTapped(GridControlTapEventArgs)

Called when a cell was double-tapped.

OnCellLongPressed(GridControlTapEventArgs)

Called when a cell was long-tapped(Holding).

OnCellPointerEntered(GridControlInputEventArgs)

Called when the pointer enters in a cell area.

OnCellPointerExited(GridControlInputEventArgs)

Called when the pointer exits from a cell area.

OnCellTapped(GridControlTapEventArgs)

Called when a cell was tapped.

OnColumnsChanged(GridCellFactoryNotifyChange)

Notifies the cell-factory there was a change in the model columns.

OnColumnsChanging(GridCellFactoryNotifyChange)

Notifies the cell-factory there will be changed in the model columns.

OnEditEnded(GridCellRange, FrameworkElement, bool)

Called when the editing of a cell ended.

OnKeyDown(KeyEventArgs)

Called when the a keyboard key is pressed.

OnResizedColumn(GridCellRangeEventArgs)

Called after a column is resized.

OnResizedRow(GridCellRangeEventArgs)

Called after a row is resized.

OnResizingColumn(GridCellRangeEventArgs)

Called before a column is resized.

OnResizingRow(GridCellRangeEventArgs)

Called before a row is resized.

OnRowsChanged(GridCellFactoryNotifyChange)

Notifies the cell-factory there was a change in the model rows.

OnRowsChanging(GridCellFactoryNotifyChange)

Notifies the cell-factory there will be changed in the model rows.

OnScrollTipShown(GridScrollTipEventArgs)
PrepareCell(GridCellType, GridCellRange, GridCellView, Thickness)

Prepares the cell to be shown.

RefreshSelectedRanges(IReadOnlyList<GridControlRange>)
SaveDesiredCellSize(GridCellType, GridCellRange)

Returns whether the desired size for a specific cell is taken into account.

SetCellValue(GridCellType, GridCellRange, object)

Sets the value of a specified cell.

SetColumnWidth(GridRowColType, int, double)

Sets the width of the specified column.

SetRowHeight(GridRowColType, int, double)

Sets the height of the row.

UnbindCell(GridCellType, GridCellRange, GridCellView)

Unbinds the cell.

UnbindCellContent(GridCellType, GridCellRange, FrameworkElement)

Unbinds the content of the cell.