Class GridTableDropDownListCellModel
Defines the model or data part of a drop-down ListControl-like grid.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GridTableDropDownListCellModel : GridDropDownGridListControlCellModel, ISerializable, IDisposable
Remarks
You can typically access cell models through the CellModels property of the GridModel class.
A GridTableDropDownListCellModel can serve as model for several GridTableDropDownListCellRenderer instances if there are several GridControlBase views for a GridModel.
See GridTableDropDownListCellRenderer for more detailed information about this cell type.
Constructors
GridTableDropDownListCellModel(GridModel)
Initializes a new instance of the GridTableDropDownListCellModel class. and stores a reference to the GridModel this cell belongs to.
Declaration
public GridTableDropDownListCellModel(GridModel grid)
Parameters
Type | Name | Description |
---|---|---|
GridModel | grid | The GridModel for this cell model. |
Remarks
You can typically access cell models through the CellModels property of the GridModel class.
GridTableDropDownListCellModel(SerializationInfo, StreamingContext)
Initializes a new instance of the GridTableDropDownListCellModel class from a serialization stream.
Declaration
protected GridTableDropDownListCellModel(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | An object that holds all the data needed to serialize or deserialize this instance. |
System.Runtime.Serialization.StreamingContext | context | Describes the source and destination of the serialized stream specified by info. |
Methods
CreateRenderer(GridControlBase)
Creates a cell renderer for this cell model.
Declaration
public override GridCellRendererBase CreateRenderer(GridControlBase control)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | control | The grid control base. |
Returns
Type | Description |
---|---|
GridCellRendererBase | An instance of the GridTableDropDownListCellRenderer class. |
Overrides
GetFormattedText(GridStyleInfo, Object, Int32)
Overrides and gets the formatted text for the value of the current instance with the specified style format.
Declaration
public override string GetFormattedText(GridStyleInfo style, object value, int textInfo)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | An instance of the GridStyleInfo that holds the values of style properties. |
System.Object | value | Cell value to be formated. |
System.Int32 | textInfo | TextInfo is a hint of who is calling, default is GridCellBaseTextInfo.DisplayText. |
Returns
Type | Description |
---|---|
System.String | The formatted text. |