[]
        
(Showing Draft Content)

C1.Xamarin.Forms.Grid.GridCellFactory

GridCellFactory Class

Implements the functionality to create grid cells dynamically.

Inheritance
GridCellFactory
Namespace: C1.Xamarin.Forms.Grid
Assembly: C1.Xamarin.Forms.Grid.dll
Syntax
public class GridCellFactory : GridCellFactoryBase

Constructors

Name Description
GridCellFactory()

Initializes a new instance of the GridCellFactory class.

Properties

Name Description
CellsColumnsCount

Gets the number of columns belonging to the cells area.

CellsRowsCount

Gets the number of rows belonging to the cells area.

ColumnHeaderRowsCount

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

Grid

Gets the associated grid.

GridBase

Gets the associated grid.

RowHeaderColumnsCount

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

Methods

Name Description
AllowEditing(GridCellRange)

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

BindCellContent(GridCellType, GridCellRange, View)

Binds the content of the cell.

CanDragColumn(bool, int)

Determines whether the column can be drag.

CanDragRow(bool, int)

Determines whether the row can be drag.

CanDropColumn(bool, int, int)

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

CanDropRow(bool, int, int)

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

CanSetColumnWidth(bool, int)

Determines whether the with of a column can be set.

CanSetRowHeight(bool, int)

Determines whether the height of the row can be set.

CreateCellContent(GridCellType, GridCellRange, object)

Creates the content of the cell.

CreateCellEditor(GridCellRange)

Creates the cell editor.

DropColumnAsync(bool, int, int)

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

DropRowAsync(bool, 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.

GetCellText(GridCellType, GridCellRange)

Gets the text representing the content of a cell.

GetColumnInfo(bool, int)

Gets the dimensions for the specified column.

GetDefaultColumn()

Gets the default column dimensions.

GetDefaultRow()

Gets the default row dimensions.

GetRowInfo(bool, int)

Gets the dimensions for the specified row.

OnEditEnded(GridCellRange, View, bool)

Called when the editing of a cell ended.

PrepareCell(GridCellType, GridCellRange, GridCellView)

Prepares the cell to be shown.

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(bool, int, double)

Sets the width of the specified column.

SetRowHeight(bool, int, double)

Sets the height of the row.

UnbindCellContent(GridCellType, GridCellRange, View)

Unbinds the content of the cell.