Class DataGridStackedHeaderRow
The DataGridStackedHeaderRow contains the collection of DataGridStackedColumn to be grouped under a particular category.
Inheritance
Implements
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridStackedHeaderRow : BindableObject, IDisposable
Constructors
DataGridStackedHeaderRow()
Initializes a new instance of the DataGridStackedHeaderRow class that represents a row that conatains the grouped column headers.
Declaration
public DataGridStackedHeaderRow()
Fields
NameProperty
Identifies the Name Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty NameProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.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 |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The identifier for the Columns Microsoft.Maui.Controls.BindableProperty.
Properties
Columns
Gets the collection of the DataGridStackedColumn to group under common header.
Declaration
public ObservableCollection<DataGridStackedColumn> Columns { get; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<DataGridStackedColumn> |
Examples
<syncfusion:DataGridStackedHeaderRow.Columns>
<syncfusion:DataGridStackedColumn
ColumnMappingNames = "EmployeeID,Name"
Text="Employee Details" />
</syncfusion:DataGridStackedHeaderRow.Columns>
SfDataGrid dataGrid = new SfDataGrid();
var stackedHeaderRow = new DataGridStackedHeaderRow();
stackedHeaderRow.Columns.Add(new DataGridStackedColumn()
{
ColumnMappingNames = "EmployeeID,Name",
Text = "Employee Details",
});
dataGrid.StackedHeaderRows.Add(stackedHeaderRow);
Name
Gets or sets the name for DataGridStackedHeaderRow.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the StackedHeaderRow. The default value is Empty. |
Methods
Dispose()
Perform clean up before it is released from memory.
Declaration
public void Dispose()
Dispose(Boolean)
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 |
---|---|---|
System.Boolean | disposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |