Class GridBaseCellModelFactory
GridCellModelFactory creates GridCellModelBase objects to be used in a GridModel.
Inheritance
System.Object
GridBaseCellModelFactory
Implements
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridBaseCellModelFactory : Object, IGridCellModelFactory
Constructors
GridBaseCellModelFactory()
Initializes a GridBaseCellModelFactory
Declaration
public GridBaseCellModelFactory()
GridBaseCellModelFactory(Boolean)
Initializes a GridBaseCellModelFactory and optionally marks it as "Default", allowing the grid to replace it with a derived factory at any time.
Declaration
public GridBaseCellModelFactory(bool isDefault)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDefault | True if this cell model factory is default. |
Properties
IsDefault
Returns true when the grid is allowed to replace this factory with a derived factory at any time.
Declaration
public virtual bool IsDefault { get; }
Property Value
Type |
---|
System.Boolean |
Methods
CreateCellModel(String, GridModel)
Creates GridCellModelBase objects to be used in a GridModel.
Declaration
public virtual GridCellModelBase CreateCellModel(string cellTypeName, GridModel pGrid)
Parameters
Type | Name | Description |
---|---|---|
System.String | cellTypeName | A cell type name that identifies the cell model to be instantiated. |
GridModel | pGrid | The GridModel the new cell model object should be associated with. |
Returns
Type | Description |
---|---|
GridCellModelBase | Appropriate cell model. |