Class DataGridStackedColumn
Represents a column that is stacked across the specified child columns in it.
Inheritance
Implements
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridStackedColumn : BindableObject, IDisposable
Constructors
DataGridStackedColumn()
Initializes a new instance of the DataGridStackedColumn class to represents a column that are stacked across the specified child columns in it.
Declaration
public DataGridStackedColumn()
Fields
ChildColumnsProperty
Identifies the ChildColumns Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty ChildColumnsProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The identifier for the ChildColumns Microsoft.Maui.Controls.BindableProperty.
MappingNameProperty
Identifies the ChildColumns Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty MappingNameProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The identifier for the ChildColumns Microsoft.Maui.Controls.BindableProperty.
TemplateProperty
Identifies the Template Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty TemplateProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The identifier for the Template Microsoft.Maui.Controls.BindableProperty.
TextProperty
Identifies the Text Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty TextProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The identifier for the Text Microsoft.Maui.Controls.BindableProperty.
Properties
ColumnMappingNames
Gets or sets the name of child columns that need to be stacked under the specified DataGridStackedColumn.
Declaration
public string ColumnMappingNames { get; set; }
Property Value
Type |
---|
System.String |
Remarks
The list of MappingName should be given by separating by comma (,).
Examples
<syncfusion:DataGridStackedColumn
ColumnMappingNames = "EmployeeID,Name"
Text="Employee Details" />
ColumnMappingNames = "EmployeeID,Name",
MappingName
to do
Declaration
public string MappingName { get; set; }
Property Value
Type |
---|
System.String |
Template
Gets or sets the template used to display the stacked header cell.
Declaration
public DataTemplate Template { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.DataTemplate |
Examples
<syncfusion:DataGridStackedHeaderRow.Columns>
<syncfusion:DataGridStackedColumn
ColumnMappingNames = "EmployeeID,Name"
Text="Employee Details" >
<syncfusion:DataGridStackedColumn.Template>
<DataTemplate>
<Button Text = "Employee Details" />
</ DataTemplate >
</ syncfusion:DataGridStackedColumn.Template>
</syncfusion:DataGridStackedColumn>
</syncfusion:DataGridStackedHeaderRow.Columns>
Text
Gets or sets the display text of the DataGridStackedColumn.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
Examples
<syncfusion:DataGridStackedHeaderRow.Columns>
<syncfusion:DataGridStackedColumn
ColumnMappingNames = "EmployeeID,Name"
Text="Employee Details" />
</syncfusion:DataGridStackedHeaderRow.Columns>
stackedHeaderRow.Columns.Add(new DataGridStackedColumn()
{
ColumnMappingNames = "EmployeeID,Name",
Text = "Employee Details",
});
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. |