Class GridUITypeEditorCellModel
Defines the model / data part of a drop-down with a ListControl-like grid or a UITypeEditor.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridUITypeEditorCellModel : GridDropDownStandardValuesCellModel, ISerializable, IDisposable
Remarks
You typically access cell models through the CellModels property of the GridModel class.
A GridUITypeEditorCellModel can serve as model for several GridUITypeEditorCellRenderer instances if there are several GridControlBase views for a GridModel.
See GridUITypeEditorCellRenderer for more detailed information about this cell type.
Constructors
GridUITypeEditorCellModel(GridModel)
Initializes a new GridUITypeEditorCellModel object and stores a reference to the GridModel this cell belongs to.
Declaration
public GridUITypeEditorCellModel(GridModel grid)
Parameters
Type | Name | Description |
---|---|---|
GridModel | grid | The GridModel for this cell model. |
Remarks
You typically access cell models through the CellModels property of the GridModel class.
GridUITypeEditorCellModel(SerializationInfo, StreamingContext)
Initializes a new GridUITypeEditorCellModel from a serialization stream.
Declaration
protected GridUITypeEditorCellModel(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | An object that holds all the data needed to serialize or de_serialize this instance. |
System.Runtime.Serialization.StreamingContext | context | Describes the source and destination of the serialized stream specified by info. |
Methods
CreateRenderer(GridControlBase)
Creates a GridDropDownStandardValuesCellRenderer for this cell model that is specific to the GridControlBase.
Declaration
public override GridCellRendererBase CreateRenderer(GridControlBase control)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | control | The grid control for which the cell renderer is created for. |
Returns
Type | Description |
---|---|
GridCellRendererBase | A new GridUITypeEditorCellRenderer specific for the specified grid. |
Overrides
GetUITypeEditor(GridStyleInfo)
Determines the System.Drawing.Design.UITypeEditor that should be displayed in the dropdown part. If it is null the standard values collection will be displayed in a dropdown grid.
Declaration
public virtual UITypeEditor GetUITypeEditor(GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | The style object |
Returns
Type | Description |
---|---|
System.Drawing.Design.UITypeEditor | A System.Drawing.Design.UITypeEditor |