Class GridQueryCellModelEventArgs
Provides data about the QueryCellModel event.
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public sealed class GridQueryCellModelEventArgs : GridModelEventArgs
Remarks
The GridQueryCellModelEventArgs is a custom event argument class used by the QueryCellModel event for querying the GridCellModelBase based on a string cellType.
The GridModel has a table with all cell types used in the grid. Whenever the grid encounters a new cell type that it cannot find in the table, it will raise a QueryCellModel event. The CellType identifies the name of the cell type. The CellModel should receive the new instance of the associated cell object. This object will be stored in the table together with its name and reused among cells with the same CellType.
You should process this event if you want to add custom cell types and initialize these cell types on demand when associated cells are accessed the first time.
Constructors
GridQueryCellModelEventArgs(GridModel, String)
Initalizes a new object.
Declaration
public GridQueryCellModelEventArgs(GridModel gridModel, string cellType)
Parameters
Type | Name | Description |
---|---|---|
GridModel | gridModel | The grid model. |
System.String | cellType | The cell type identifier as used in the CellType property. |
Properties
CellModel
The GridCellModelBase for the cell type. You should create a new instance of the specific cell model and save it to this property.
Declaration
[TraceProperty(true)]
public GridCellModelBase CellModel { get; set; }
Property Value
Type |
---|
GridCellModelBase |
CellType
The cell type identifier as used in the CellType property.
Declaration
[TraceProperty(true)]
public string CellType { get; }
Property Value
Type |
---|
System.String |