Class GridNestedTableControlCellModel
Defines a class that draws GridNestedTableControl with the GridTableModel and a Table. Within the table, the FilteredChildTable will be set before the cell is drawn or accessed.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GridNestedTableControlCellModel : GridStaticCellModel, ISerializable, IDisposable
Remarks
You can typically access cell models through the CellModels property of the GridModel class. A nested table control cell model is identified through its parent relations name with an "RT" prefix.
Examples
string cellType = "RT" + relatedTable.TableDescriptor.Name;
GridNestedTableControlCellModel cm = this.CellModels[cellType] as GridNestedTableControlCellModel;
Dim cellType As String = "RT" + relatedTable.TableDescriptor.Name
Dim cm As GridNestedTableControlCellModel = Me.CellModels(cellType)
Constructors
GridNestedTableControlCellModel(GridModel, GridTable)
Initializes a new instance of the GridNestedTableControlCellModel class and stores a reference to the GridModel and GridTable this cell model belongs to.
Declaration
public GridNestedTableControlCellModel(GridModel grid, GridTable table)
Parameters
Type | Name | Description |
---|---|---|
GridModel | grid | The GridModel for this cell model. |
GridTable | table | The GridTable. |
Remarks
You can typically access cell models through the CellModels property of the GridModel class. A nested table control cell model is identified through its parent relations name with an "RT" prefix.
Examples
string cellType = "RT" + relatedTable.TableDescriptor.Name;
GridNestedTableControlCellModel cm = this.CellModels[cellType] as GridNestedTableControlCellModel;
Dim cellType As String = "RT" + relatedTable.TableDescriptor.Name
Dim cm As GridNestedTableControlCellModel = Me.CellModels(cellType)
GridNestedTableControlCellModel(SerializationInfo, StreamingContext)
Initializes a new instance of the GridNestedTableControlCellModel class from a serialization stream.
Declaration
protected GridNestedTableControlCellModel(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. |
Properties
FilteredChildTable
Gets or sets the filtered child table.
Declaration
public ChildTable FilteredChildTable { get; set; }
Property Value
Type |
---|
ChildTable |
Grid
Gets the parent GridTableModel that owns this cell model.
Declaration
public GridTableModel Grid { get; }
Property Value
Type |
---|
GridTableModel |
RelatedTable
Gets the instance of the GridTable class.
Declaration
public GridTable RelatedTable { get; }
Property Value
Type |
---|
GridTable |
RelatedTableModel
Gets the instance of the GridTableModel class.
Declaration
public GridTableModel RelatedTableModel { get; }
Property Value
Type |
---|
GridTableModel |
Methods
CreateRenderer(GridControlBase)
Overrides and creates a cell renderer for this cell model.
Declaration
public override GridCellRendererBase CreateRenderer(GridControlBase control)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | control | The grid control. |
Returns
Type | Description |
---|---|
GridCellRendererBase | An instance of the GridNestedTableControlCellRenderer class. |
Overrides
Dispose(Boolean)
Overrides and manages the unwanted resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
ToString()
Overrides and gets a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |