menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridHeaderCellControl - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridHeaderCellControl

    Represents a class that provides common functionalities of HeaderCellControl in SfDataGrid.

    Inheritance
    System.Object
    GridHeaderCellControl
    Implements
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class GridHeaderCellControl : ContentControl, IDisposable

    Constructors

    GridHeaderCellControl()

    Initializes a new instance of GridHeaderIndentCell class.

    Declaration
    public GridHeaderCellControl()

    Fields

    ColumnOptionsWidthProperty

    Declaration
    public static readonly DependencyProperty ColumnOptionsWidthProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ColumnProperty

    Dependency registration for Column property.

    Declaration
    public static readonly DependencyProperty ColumnProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DataGrid

    Declaration
    protected SfDataGrid DataGrid
    Field Value
    Type
    SfDataGrid

    FilterIconVisiblityProperty

    Declaration
    public static readonly DependencyProperty FilterIconVisiblityProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    FilterPopupHost

    Gets Filter popup Control type of GridFilterControl.

    Declaration
    protected GridFilterControl FilterPopupHost
    Field Value
    Type
    GridFilterControl

    FilterPopUpPresenter

    Gets or sets Presenter for Filter Popup.

    Declaration
    protected Border FilterPopUpPresenter
    Field Value
    Type
    System.Windows.Controls.Border

    FilterToggleButton

    Gets or sets Filter toggle button.

    Declaration
    protected FilterToggleButton FilterToggleButton
    Field Value
    Type
    FilterToggleButton

    SortDirectionProperty

    Dependency registration for SortDirection property.

    Declaration
    public static readonly DependencyProperty SortDirectionProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SortNumberProperty

    Dependeny registration for SortNumber property.

    Declaration
    public static readonly DependencyProperty SortNumberProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SortNumberVisibilityProperty

    Dependency registration for SortNumberVisibility property.

    Declaration
    public static readonly DependencyProperty SortNumberVisibilityProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    Column

    Gets or sets Associated GridColumn.

    Declaration
    public GridColumn Column { get; set; }
    Property Value
    Type
    GridColumn
    Remarks

    Using this Column all other operations will be done

    ColumnOptionsWidth

    Gets or sets ColumnOptionsWidth.

    Declaration
    public double ColumnOptionsWidth { get; }
    Property Value
    Type
    System.Double
    Remarks

    this width will be set for column width rest than for Content presenter

    FilterIconVisiblity

    Declaration
    public Visibility FilterIconVisiblity { get; set; }
    Property Value
    Type
    System.Windows.Visibility

    GridCellRegion

    Gets or sets the cell region in the SfTreeGrid.

    Declaration
    public GridCellRegion GridCellRegion { get; set; }
    Property Value
    Type
    GridCellRegion

    IsFilterApplied

    Gets a value indicating whether the filter s applied .

    Declaration
    protected bool IsFilterApplied { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance ; otherwise, false.

    SortDirection

    Gets or sets Path direction (Ascending/Descending).

    Declaration
    public object SortDirection { get; set; }
    Property Value
    Type
    System.Object

    SortNumber

    Gets or sets Order/Number for sort columns.

    Declaration
    public string SortNumber { get; }
    Property Value
    Type
    System.String

    SortNumberVisibility

    Gets or sets Sorting Number visibility.

    Declaration
    public Visibility SortNumberVisibility { get; set; }
    Property Value
    Type
    System.Windows.Visibility

    Methods

    ApplyFilterToggleButtonVisualState()

    Sets the VisualState for the Filter toggle button.

    Declaration
    protected virtual void ApplyFilterToggleButtonVisualState()

    Dispose()

    Disposes all the resources class.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Disposes all the resources class.

    Declaration
    protected virtual void Dispose(bool isDisposing)
    Parameters
    Type Name Description
    System.Boolean isDisposing

    Indicates whether the call is from Dispose method or from a finalizer.

    OnApplyTemplate()

    Invoked to apply template for GridHeaderCellControl

    Declaration
    public override void OnApplyTemplate()

    OnColumnChanged()

    Invoked when column changed.

    Declaration
    protected virtual void OnColumnChanged()

    OnCreateAutomationPeer()

    Returns a class-specific AutomationPeer Implementations for the Microsoft UI Automation infrastrcutre.

    Declaration
    protected override AutomationPeer OnCreateAutomationPeer()
    Returns
    Type Description
    System.Windows.Automation.Peers.AutomationPeer

    The class-specific AutomationPeer subclass.

    OnLostMouseCapture(MouseEventArgs)

    Declaration
    protected override void OnLostMouseCapture(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    OnManipulationDelta(ManipulationDeltaEventArgs)

    Declaration
    protected override void OnManipulationDelta(ManipulationDeltaEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.ManipulationDeltaEventArgs e

    OnMouseDoubleClick(MouseButtonEventArgs)

    Declaration
    protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    OnMouseDown(MouseButtonEventArgs)

    Declaration
    protected override void OnMouseDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    OnMouseEnter(MouseEventArgs)

    Declaration
    protected override void OnMouseEnter(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    OnMouseLeave(MouseEventArgs)

    Declaration
    protected override void OnMouseLeave(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    OnMouseLeftButtonDown(MouseButtonEventArgs)

    Declaration
    protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    OnMouseLeftButtonUp(MouseButtonEventArgs)

    Declaration
    protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    OnMouseMove(MouseEventArgs)

    Declaration
    protected override void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    OnMouseUp(MouseButtonEventArgs)

    Declaration
    protected override void OnMouseUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    OnSortDirectionChanged(DependencyPropertyChangedEventArgs)

    Invoked when SortDirection changed.

    Declaration
    protected virtual void OnSortDirectionChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnTouchDown(TouchEventArgs)

    Declaration
    protected override void OnTouchDown(TouchEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.TouchEventArgs e

    OnTouchUp(TouchEventArgs)

    Declaration
    protected override void OnTouchUp(TouchEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.TouchEventArgs e

    OpenFilterPopUp()

    Invoked to open the Filter popup.

    Declaration
    protected virtual void OpenFilterPopUp()

    ShowContextMenu()

    Opens the context menu at the specified position.

    Declaration
    protected virtual bool ShowContextMenu()
    Returns
    Type Description
    System.Boolean

    true If the context menu opened;Otherwisefalse

    Update()

    Makes Sure headercell property for updation

    Declaration
    public void Update()
    Remarks

    initial sort itemsource change checking

    UpdateGridHeaderCellBorderState(Boolean)

    Update the VisualState based upon the cell region.

    Declaration
    public void UpdateGridHeaderCellBorderState(bool canApplyDefaultState = true)
    Parameters
    Type Name Description
    System.Boolean canApplyDefaultState

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved