Class TreeGridStackedHeaderRow
The TreeGridStackedHeaderRow contains the collection of TreeGridStackedColumn to be grouped under a particular category.
Implements
Namespace: Syncfusion.Maui.TreeGrid
Assembly: Syncfusion.Maui.TreeGrid.dll
Syntax
public class TreeGridStackedHeaderRow : BindableObject, IDisposable
Constructors
TreeGridStackedHeaderRow()
Initializes a new instance of the TreeGridStackedHeaderRow class that represents a row that contains the grouped column headers.
Declaration
public TreeGridStackedHeaderRow()
Fields
NameProperty
Identifies the Name Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty NameProperty
Field Value
| Type |
|---|
| BindableProperty |
Remarks
The identifier for the Name Microsoft.Maui.Controls.BindableProperty.
StackedColumnsProperty
Identifies the Columns Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty StackedColumnsProperty
Field Value
| Type |
|---|
| BindableProperty |
Remarks
The identifier for the Columns Microsoft.Maui.Controls.BindableProperty.
Properties
Columns
Gets the collection of the TreeGridStackedColumn to group under a common header.
Declaration
public ObservableCollection<TreeGridStackedColumn> Columns { get; }
Property Value
| Type |
|---|
| ObservableCollection<TreeGridStackedColumn> |
Examples
<treegrid:TreeGridStackedHeaderRow.Columns>
<treegrid:TreeGridStackedColumn
ColumnMappingNames = "EmployeeID,Name"
Text="Employee Details" />
</treegrid:TreeGridStackedHeaderRow.Columns>
SfTreeGrid treeGrid = new SfTreeGrid();
var stackedHeaderRow = new TreeGridStackedHeaderRow();
stackedHeaderRow.Columns.Add(new TreeGridStackedColumn()
{
ColumnMappingNames = "EmployeeID,Name",
Text = "Employee Details",
});
treeGrid.StackedHeaderRows.Add(stackedHeaderRow);
Name
Gets or sets the name for TreeGridStackedHeaderRow.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string that specifies the name of the TreeGridStackedHeaderRow. The default value is Empty. |
Methods
Dispose()
Performs cleanup before the instance is released from memory.
Declaration
public void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |