Class GridCellNestedGridModel
Implements the model of a nested grid cell.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridCellNestedGridModel : GridCellModelBase, IDisposable
Remarks
You can nest grids inside a row, column or covered range. When you nest a grid inside a covered range you can specify whether the rows or columns derive their state from the parent control. You have multiple independent options for both rows and columns.
The GridNestedAxisLayout enumeration defines the possible options for the rows and columns of a nested grid.
Row | Column | Description
Normal | Normal | Nested grid will have its own row heights and column widths, independent of parent grid.
Shared | Normal | Shared Row layout - Nested grid will have unique column widths, but its row heights are shared with the parent grid.
Normal | Shared | Shared Column layout - Nested grid will have unique row heights, but its column widths are shared with the parent grid.
Nested | Nested | Nested Layout - The rows and columns of the inner grid is nested inside a single row or column of the parent grid.
Constructors
GridCellNestedGridModel()
Initializes a new GridCellNestedGridModel that maintains own sizes, independent of the parent grid.
Declaration
public GridCellNestedGridModel()
GridCellNestedGridModel(GridNestedAxisLayout, GridNestedAxisLayout)
Initializes a new GridCellNestedGridModel.
Declaration
public GridCellNestedGridModel(GridNestedAxisLayout rowLayout, GridNestedAxisLayout columnLayout)
Parameters
Type | Name | Description |
---|---|---|
GridNestedAxisLayout | rowLayout | Row layout. |
GridNestedAxisLayout | columnLayout | Column layout. |
Properties
ColumnLayout
Gets or sets the column layout for the nested grid. It can be normal, nested or shared.
Declaration
public GridNestedAxisLayout ColumnLayout { get; set; }
Property Value
Type |
---|
GridNestedAxisLayout |
RowLayout
Gets or sets the row layout for the nested grid. It can be normal, nested or shared.
Declaration
public GridNestedAxisLayout RowLayout { get; set; }
Property Value
Type |
---|
GridNestedAxisLayout |
Methods
Clone()
Creates a copy of the current GridCellNestedGridModel object.
Declaration
public override GridCellModelBase Clone()
Returns
Type | Description |
---|---|
GridCellModelBase | A copy of the current object. |
Overrides
CreateRenderer()
Creates the nested grid cell renderer with the specified row and column layouts.
Declaration
public override IGridCellRenderer CreateRenderer()
Returns
Type | Description |
---|---|
IGridCellRenderer | Cell renderer. |