Class GridQueryCellModelEventArgs
Provides data about the QueryCellModel event.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.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)
Initializes the new instances of the GridQueryCellModelEventArgs class.
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
Gets or sets 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
Gets the cell type identifier as used in the CellType property.
Declaration
[TraceProperty(true)]
public string CellType { get; }
Property Value
Type |
---|
System.String |