Class DataGridHeaderCell
Represents a header cell in a SfDataGrid control.
Implements
IDrawable
IAbsoluteLayout
ILayout
IView
IElement
ITransform
IContainer
IList<IView>
ICollection<IView>
IEnumerable<IView>
ISafeAreaView
IPadding
ICrossPlatformLayout
IVisualTreeElement
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridHeaderCell : DataGridCell, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, IDisposable
Constructors
DataGridHeaderCell()
Initializes a new instance of the DataGridHeaderCell class.
Declaration
public DataGridHeaderCell()
Properties
DataGridColumn
Gets the DataGridColumn associated with the header cell, where grid column represents each column in the SfDataGrid.
Declaration
public DataGridColumn? DataGridColumn { get; }
Property Value
| Type | Description |
|---|---|
| DataGridColumn | The DataGridColumn associated with the header cell. |
SortColumn
Gets the column that represents sorting in the Columns collection, which contains the columns in the SfDataGrid.
Declaration
public string? SortColumn { get; }
Property Value
| Type |
|---|
| string |
SortDirection
Gets or sets the sort direction of the associated DataGridColumn which is sorted.
Declaration
public ListSortDirection? SortDirection { get; set; }
Property Value
| Type |
|---|
| ListSortDirection? |
Methods
MakeSort()
Sort the data of a column against the user tap on a column header.
Declaration
protected void MakeSort()
UpdateSortViews()
Updates the header cell components of a column.
Declaration
public void UpdateSortViews()
Implements
Microsoft.Maui.Graphics.IDrawable
Microsoft.Maui.IAbsoluteLayout
Microsoft.Maui.ILayout
Microsoft.Maui.IView
Microsoft.Maui.IElement
Microsoft.Maui.ITransform
Microsoft.Maui.IContainer
Microsoft.Maui.ISafeAreaView
Microsoft.Maui.IPadding
Microsoft.Maui.ICrossPlatformLayout
Microsoft.Maui.IVisualTreeElement