menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataGridHeaderCell - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataGridHeaderCell

    Represents a header cell in a SfDataGrid control.

    Inheritance
    System.Object
    SfView
    SfContentView
    Syncfusion.Maui.Core.Internals.DataGridCellBase
    DataGridCell
    DataGridHeaderCell
    Implements
    IDrawableLayout
    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.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    System.IDisposable
    Inherited Members
    DataGridCell.Background
    DataGridCell.BackgroundProperty
    DataGridCell.CellValue
    DataGridCell.CellValueProperty
    DataGridCell.ColumnIndex
    DataGridCell.DataColumn
    DataGridCell.Dispose()
    DataGridCell.FontAttributes
    DataGridCell.FontAttributesProperty
    DataGridCell.FontAutoScalingEnabled
    DataGridCell.FontFamily
    DataGridCell.FontFamilyProperty
    DataGridCell.FontSize
    DataGridCell.FontSizeProperty
    DataGridCell.OnDraw(ICanvas, RectF)
    DataGridCell.OnHandlerChanged()
    DataGridCell.Padding
    DataGridCell.PaddingProperty
    DataGridCell.RowIndex
    DataGridCell.TextAlignment
    DataGridCell.TextAlignmentProperty
    DataGridCell.TextColor
    DataGridCell.TextColorProperty
    SfContentView.Content
    SfContentView.ContentProperty
    SfContentView.OnContentChanged(Object, Object)
    SfView.ArrangeContent(Rect)
    SfView.ArrangeOverride(Rect)
    SfView.Children
    SfView.ClipToBounds
    SfView.GetSemanticsNodesCore(Double, Double)
    SfView.IDrawableLayout.DrawingOrder
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.MeasureContent(Double, Double)
    SfView.MeasureOverride(Double, Double)
    SfView.OnBindingContextChanged()
    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, ISemanticsProvider, IDisposable, ITapGestureListener, IDoubleTapGestureListener, ILongPressGestureListener, ITextElement, IRightTapGestureListener, IGestureListener, ITouchListener

    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
    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
    System.Nullable<System.ComponentModel.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

    IDrawableLayout
    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.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved