menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridNestedTableControlCellModel - API Reference

    Show / Hide Table of Contents

    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
    System.Object
    NonFinalizeDisposable
    Disposable
    GridCellModelBase
    GridStaticCellModel
    GridNestedTableControlCellModel
    Implements
    System.Runtime.Serialization.ISerializable
    System.IDisposable
    Inherited Members
    GridStaticCellModel.GetObjectData(SerializationInfo, StreamingContext)
    GridStaticCellModel.OnQueryPrefferedClientSize(Graphics, Int32, Int32, GridStyleInfo, GridQueryBounds)
    GridStaticCellModel.OnQueryCanMergeCell(Int32, Int32, GridStyleInfo, GridMergeCellDirection)
    GridStaticCellModel.OnQueryCanFloatCell(Int32, Int32, GridStyleInfo, GridQueryFloatCell)
    GridStaticCellModel.AllowFloating
    GridStaticCellModel.AllowMerging
    GridCellModelBase.Dispose()
    GridCellModelBase.OnBindingContextChanged(EventArgs)
    GridCellModelBase.GetLocalizedString(String)
    GridCellModelBase.OnModelDeserialization(Object, GridModel)
    GridCellModelBase.CreateCopy(GridModel)
    GridCellModelBase.SubtractBorders(Rectangle, GridStyleInfo, Boolean)
    GridCellModelBase.SubtractBorders(Rectangle, GridStyleInfo)
    GridCellModelBase.CalculatePreferredCellSize(Graphics, Int32, Int32, GridStyleInfo, GridQueryBounds)
    GridCellModelBase.MeasureSampleWString(Graphics, Font)
    GridCellModelBase.GetCellSize(Int32, Int32)
    GridCellModelBase.GetCellClientSize(Int32, Int32, GridStyleInfo)
    GridCellModelBase.GetFormattedOrActiveTextAt(Int32, Int32, GridStyleInfo)
    GridCellModelBase.GetFormattedText(GridStyleInfo, Object, Int32)
    GridCellModelBase.ApplyFormattedText(GridStyleInfo, String, Int32)
    GridCellModelBase.GetText(GridStyleInfo, Object)
    GridCellModelBase.ApplyText(GridStyleInfo, String)
    GridCellModelBase.SetActiveText(Int32, Int32, String)
    GridCellModelBase.GetActiveText(Int32, Int32)
    GridCellModelBase.OnActiveTextChanged(GridCellEventArgs)
    GridCellModelBase.ResetActiveText(Int32, Int32)
    GridCellModelBase.GetPropertyDescriptor(GridStyleInfo)
    GridCellModelBase.GetTypeConverter(GridStyleInfo)
    GridCellModelBase.IsDisposing
    GridCellModelBase.IsDisposed
    GridCellModelBase.ForceCoveredCellFullBounds
    GridCellModelBase.BindingContext
    GridCellModelBase.Description
    GridCellModelBase.SerializeSchemeVersion
    GridCellModelBase.ButtonBarSize
    GridCellModelBase.MeasureEmptyCellString
    GridCellModelBase.ActiveTextChanged
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    ChildTable

    Grid

    Gets the parent GridTableModel that owns this cell model.

    Declaration
    public GridTableModel Grid { get; }
    Property Value
    Type Description
    GridTableModel

    RelatedTable

    Gets the instance of the GridTable class.

    Declaration
    public GridTable RelatedTable { get; }
    Property Value
    Type Description
    GridTable

    RelatedTableModel

    Gets the instance of the GridTableModel class.

    Declaration
    public GridTableModel RelatedTableModel { get; }
    Property Value
    Type Description
    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
    GridStaticCellModel.CreateRenderer(GridControlBase)

    Dispose(Boolean)

    Overrides and manages the unwanted resources.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    NonFinalizeDisposable.Dispose(Boolean)

    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.

    Overrides
    System.Object.ToString()

    Implements

    System.Runtime.Serialization.ISerializable
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved