skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GridViewHeaderCell

This is User Interface(UI) element that is a part from row header and represents a column header. Dragging the GridViewHeaderCell is the key action to group the RadGridView and reorder the columns, resizing the width of the element is a UI way to resize a column.

Inheritance
System.Object
GridViewCellBase
GridViewHeaderCell
Inherited Members
GridViewCellBase.CellDoubleClickEvent
GridViewCellBase.VerticalGridLinesBrushProperty
GridViewCellBase.VerticalGridLinesWidthProperty
GridViewCellBase.OnMouseDoubleClick(MouseButtonEventArgs)
GridViewCellBase.OnMouseEnter(MouseEventArgs)
GridViewCellBase.OnMouseLeave(MouseEventArgs)
GridViewCellBase.OnPropertyChanged(PropertyChangedEventArgs)
GridViewCellBase.Column
GridViewCellBase.ParentRow
GridViewCellBase.ParentDataControl
GridViewCellBase.DataColumn
GridViewCellBase.VerticalGridLinesBrush
GridViewCellBase.VerticalGridLinesWidth
GridViewCellBase.CellDoubleClick
GridViewCellBase.PropertyChanged
Namespace: Telerik.Windows.Controls.GridView
Assembly: Telerik.Windows.Controls.GridView.dll

Syntax

public class GridViewHeaderCell : GridViewCellBase, INotifyPropertyChanged, IProvideGridViewColumn

Constructors

GridViewHeaderCell()

Initializes a new instance of the GridViewHeaderCell class.

Declaration
public GridViewHeaderCell()

Fields

ColumnsReorderingEvent

Identifies the ColumnsReorderingEvent routed event.

Declaration
public static readonly RoutedEvent ColumnsReorderingEvent
Field Value
System.Windows.RoutedEvent

DropIndicatorBrushProperty

Identifies the DropIndicatorBrush dependency property.

Declaration
public static readonly DependencyProperty DropIndicatorBrushProperty
Field Value
System.Windows.DependencyProperty

DropIndicatorThicknessProperty

Identifies the DropIndicatorThickness dependency property.

Declaration
public static readonly DependencyProperty DropIndicatorThicknessProperty
Field Value
System.Windows.DependencyProperty

DropMarkPenProperty

Identifies the DropMarkPen dependency property.

Declaration
public static readonly DependencyProperty DropMarkPenProperty
Field Value
System.Windows.DependencyProperty

The identifier for the DropMarkPen property.

FieldFilterControlVisibilityProperty

Identifies the FieldFilterControlVisibility dependency property.

Declaration
public static readonly DependencyProperty FieldFilterControlVisibilityProperty
Field Value
System.Windows.DependencyProperty

FilteringUIVisibilityProperty

Identifies the FilteringUIVisibility dependency property.

Declaration
public static readonly DependencyProperty FilteringUIVisibilityProperty
Field Value
System.Windows.DependencyProperty

PreviewColumnsReorderingEvent

Identifies the PreviewColumnsReorderingEvent routed event.

Declaration
public static readonly RoutedEvent PreviewColumnsReorderingEvent
Field Value
System.Windows.RoutedEvent

SortingIndexProperty

Identifies the SortingIndex dependency property.

Declaration
public static readonly DependencyProperty SortingIndexProperty
Field Value
System.Windows.DependencyProperty

SortingStateProperty

Identifies the SortingState dependency property.

Declaration
public static readonly DependencyProperty SortingStateProperty
Field Value
System.Windows.DependencyProperty

TextAlignmentProperty

Gets or sets a value that indicates the horizontal alignment of text content Affects all the header cell in the column.

Declaration
public static readonly DependencyProperty TextAlignmentProperty
Field Value
System.Windows.DependencyProperty

TextDecorationsProperty

Identifies the TextDecorations dependency property.

Declaration
public static readonly DependencyProperty TextDecorationsProperty
Field Value
System.Windows.DependencyProperty

TextTrimmingProperty

Identifies the TextTrimming property.

Declaration
public static readonly DependencyProperty TextTrimmingProperty
Field Value
System.Windows.DependencyProperty

The identifier for the TextTrimming property.

TextWrappingProperty

Identifies the TextWrapping property.

Declaration
public static readonly DependencyProperty TextWrappingProperty
Field Value
System.Windows.DependencyProperty

Properties

DropIndicatorBrush

Controls the value of the DropIndicatorBrush property.

Declaration
public Brush DropIndicatorBrush { get; set; }
Property Value
System.Windows.Media.Brush

DropIndicatorThickness

Controls the value of the DropIndicatorThickness property.

Declaration
public double DropIndicatorThickness { get; set; }
Property Value
System.Double

DropMarkPen

Gets or sets a pen that is used to draw the drop line marker.

Declaration
public Pen DropMarkPen { get; set; }
Property Value
System.Windows.Media.Pen

The default value is null.

FieldFilterControlVisibility

Gets or sets a value indicating whether the custom filter row element is displayed.

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

true if the custom filter row element is displayed; otherwise, false.

FilteringControl

Gets or sets the control used for filtering.

Declaration
public IFilteringControl FilteringControl { get; }
Property Value
IFilteringControl

FilteringUIVisibility

Gets or sets a value indicating whether the filtering funnel is displayed.

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

true if the filtering funnel is displayed; otherwise, false.

SortingIndex

Gets the sorting index of the column when there is multiple column sorting.

Declaration
public int SortingIndex { get; set; }
Property Value
System.Int32

The sorting index of the column when there is multiple column sorting.

SortingState

Gets or sets a Column sorting state depending on executed sorted command, it can take 3 possible values: Ascending, Descending and None.

Declaration
public SortingState SortingState { get; set; }
Property Value
SortingState

TextAlignment

Gets or sets a value that indicates the horizontal alignment of text content for the header cell. This is a dependency property.

Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
System.Windows.TextAlignment

TextAlignment that will be used to align the text in the header cell. The default value is System.Windows.TextAlignment.Left

TextDecorations

Gets or sets the text decoration. Affects the header cell element. This is a dependency property.

Declaration
public TextDecorationCollection TextDecorations { get; set; }
Property Value
System.Windows.TextDecorationCollection

TextTrimming

Gets or sets TextTrimming that will be used to trim the text in the header cell. This is a dependency property.

Declaration
public TextTrimming TextTrimming { get; set; }
Property Value
System.Windows.TextTrimming

TextTrimming that will be used to trim the text in the header cell element. The default value is System.Windows.TextTrimming.None

TextWrapping

Gets or sets TextWrapping that will be used to wrap the text in this header cell. This is a dependency property.

Declaration
public TextWrapping TextWrapping { get; set; }
Property Value
System.Windows.TextWrapping

TextWrapping that will be used to wrap the text in the header cell. The default value is System.Windows.TextWrapping.NoWrap

Methods

OnApplyTemplate()

Declaration
public override void OnApplyTemplate()

OnColumnChanged(GridViewColumn, GridViewColumn)

Called due to the cell's column definition changing. Not called due to changes within the current column definition.

Declaration
protected override void OnColumnChanged(GridViewColumn oldColumn, GridViewColumn newColumn)
Parameters
GridViewColumn oldColumn

The old column definition.

GridViewColumn newColumn

The new column definition.

Overrides
GridViewCellBase.OnColumnChanged(GridViewColumn, GridViewColumn)
Remarks

Coerces ContentTemplate and ContentTemplateSelector.

OnContentTemplateChanged(DataTemplate, DataTemplate)

Declaration
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
Parameters
System.Windows.DataTemplate oldContentTemplate

System.Windows.DataTemplate newContentTemplate

OnCreateAutomationPeer()

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

OnInitialized(EventArgs)

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

OnMouseLeftButtonDown(MouseButtonEventArgs)

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

OnMouseLeftButtonUp(MouseButtonEventArgs)

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

OnMouseRightButtonUp(MouseButtonEventArgs)

Declaration
protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs e

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.