MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataGridHeaderCell

    Show / Hide Table of Contents

    Class DataGridHeaderCell

    Represents a header cell in a SfDataGrid control.

    Inheritance
    System.Object
    SfView
    SfContentView
    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.IVisualTreeElement
    System.IDisposable
    Inherited Members
    DataGridCell.CellValueProperty
    DataGridCell.BackgroundProperty
    DataGridCell.FontAttributesProperty
    DataGridCell.FontFamilyProperty
    DataGridCell.FontSizeProperty
    DataGridCell.TextAlignmentProperty
    DataGridCell.TextColorProperty
    DataGridCell.Dispose()
    DataGridCell.Background
    DataGridCell.TextAlignment
    DataGridCell.FontAttributes
    DataGridCell.FontFamily
    DataGridCell.FontSize
    DataGridCell.TextColor
    DataGridCell.CellValue
    DataGridCell.RowIndex
    DataGridCell.ColumnIndex
    DataGridCell.DataColumn
    SfContentView.ContentProperty
    SfContentView.OnContentChanged(Object, Object)
    SfContentView.Content
    SfView.OnBindingContextChanged()
    SfView.MeasureOverride(Double, Double)
    SfView.ArrangeOverride(Rect)
    SfView.OnMeasure(Double, Double)
    SfView.OnHandlerChanged()
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.Children
    SfView.ClipToBounds
    SfView.Padding
    SfView.IDrawableLayout.DrawingOrder
    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
    DataGridCell.ArrangeContent(Rect)

    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
    DataGridCell.MeasureContent(Double, Double)

    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
    DataGridCell.OnDraw(ICanvas, RectF)

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