Class DataGridHeaderCell
Represents a header cell in a SfDataGrid control.
Implements
Microsoft.Maui.Graphics.IDrawable
Microsoft.Maui.IAbsoluteLayout
Microsoft.Maui.ILayout
Microsoft.Maui.IView
Microsoft.Maui.IElement
Microsoft.Maui.ITransform
Microsoft.Maui.IContainer
System.Collections.Generic.IList<Microsoft.Maui.IView>
System.Collections.Generic.ICollection<Microsoft.Maui.IView>
System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
System.Collections.IEnumerable
Microsoft.Maui.ISafeAreaView
Microsoft.Maui.IPadding
Microsoft.Maui.IVisualTreeElement
System.IDisposable
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, IVisualTreeElement, IDisposable, ITapGestureListener, IDoubleTapGestureListener, ILongPressGestureListener, IGestureListener, ITextElement
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 | Description |
---|---|
System.String |
SortDirection
Gets or sets the sort direction of the associated DataGridColumn which is sorted.
Declaration
public Nullable<ListSortDirection> SortDirection { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.ComponentModel.ListSortDirection> |
Methods
ArrangeContent(Rect)
ToDo
Declaration
protected override Size ArrangeContent(Rect bounds)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Maui.Graphics.Rect | bounds |
Returns
Type | Description |
---|---|
Microsoft.Maui.Graphics.Size |
Overrides
MakeSort()
Sort the data of a column against the user tap on a column header.
Declaration
protected void MakeSort()
MeasureContent(Double, Double)
ToDo
Declaration
protected override Size MeasureContent(double widthConstraint, double heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
System.Double | widthConstraint | |
System.Double | heightConstraint |
Returns
Type | Description |
---|---|
Microsoft.Maui.Graphics.Size |
Overrides
OnDraw(ICanvas, RectF)
Method to draw the header cell
Declaration
protected override void OnDraw(ICanvas canvas, RectF dirtyRect)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Maui.Graphics.ICanvas | canvas | The canavas for draw |
Microsoft.Maui.Graphics.RectF | dirtyRect | Rectagle for draw |
Overrides
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
System.Collections.Generic.IList<>
System.Collections.Generic.ICollection<>
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable
Microsoft.Maui.ISafeAreaView
Microsoft.Maui.IPadding
Microsoft.Maui.IVisualTreeElement
System.IDisposable