New to Telerik UI for WPFStart a free 30-day trial

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.

Definition

Constructors

Initializes a new instance of the GridViewHeaderCell class.

C#
public GridViewHeaderCell()

Fields

Identifies the ColumnsReorderingEvent routed event.

C#
public static readonly RoutedEvent ColumnsReorderingEvent

DropIndicatorBrushProperty

DependencyProperty

Identifies the DropIndicatorBrush dependency property.

C#
public static readonly DependencyProperty DropIndicatorBrushProperty

Identifies the DropIndicatorThickness dependency property.

C#
public static readonly DependencyProperty DropIndicatorThicknessProperty

DropMarkPenProperty

DependencyProperty

Identifies the DropMarkPen dependency property.

C#
public static readonly DependencyProperty DropMarkPenProperty
Field Value:

The identifier for the DropMarkPen property.

Identifies the FieldFilterControlVisibility dependency property.

C#
public static readonly DependencyProperty FieldFilterControlVisibilityProperty

Identifies the FilteringUIVisibility dependency property.

C#
public static readonly DependencyProperty FilteringUIVisibilityProperty

Identifies the PreviewColumnsReorderingEvent routed event.

C#
public static readonly RoutedEvent PreviewColumnsReorderingEvent

SortingIndexProperty

DependencyProperty

Identifies the SortingIndex dependency property.

C#
public static readonly DependencyProperty SortingIndexProperty

SortingStateProperty

DependencyProperty

Identifies the SortingState dependency property.

C#
public static readonly DependencyProperty SortingStateProperty

TextAlignmentProperty

DependencyProperty

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

C#
public static readonly DependencyProperty TextAlignmentProperty

TextDecorationsProperty

DependencyProperty

Identifies the TextDecorations dependency property.

C#
public static readonly DependencyProperty TextDecorationsProperty

TextTrimmingProperty

DependencyProperty

Identifies the TextTrimming property.

C#
public static readonly DependencyProperty TextTrimmingProperty
Field Value:

The identifier for the TextTrimming property.

TextWrappingProperty

DependencyProperty

Identifies the TextWrapping property.

C#
public static readonly DependencyProperty TextWrappingProperty

Properties

Controls the value of the DropIndicatorBrush property.

C#
public Brush DropIndicatorBrush { get; set; }

Controls the value of the DropIndicatorThickness property.

C#
public double DropIndicatorThickness { get; set; }

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

C#
public Pen DropMarkPen { get; set; }
Property Value:

The default value is null.

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

C#
public Visibility FieldFilterControlVisibility { get; set; }
Property Value:

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

Gets or sets the control used for filtering.

C#
public IFilteringControl FilteringControl { get; }

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

C#
public Visibility FilteringUIVisibility { get; set; }
Property Value:

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

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

C#
public int SortingIndex { get; set; }
Property Value:

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

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

C#
public SortingState SortingState { get; set; }

TextAlignment

TextAlignment

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

C#
public TextAlignment TextAlignment { get; set; }
Property Value:

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

TextDecorations

TextDecorationCollection

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

C#
public TextDecorationCollection TextDecorations { get; set; }

TextTrimming

TextTrimming

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

C#
public TextTrimming TextTrimming { get; set; }
Property Value:

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

TextWrapping

TextWrapping

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

C#
public TextWrapping TextWrapping { get; set; }
Property Value:

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

Methods

C#
public override void OnApplyTemplate()

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

C#
protected override void OnColumnChanged(GridViewColumn oldColumn, GridViewColumn newColumn)
Parameters:oldColumnGridViewColumn

The old column definition.

newColumnGridViewColumn

The new column definition.

Overrides: GridViewCellBase.OnColumnChanged(GridViewColumn, GridViewColumn)

Remarks:

Coerces ContentTemplate and ContentTemplateSelector.

C#
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
Parameters:oldContentTemplateDataTemplatenewContentTemplateDataTemplate
C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs
C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs
C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs
C#
protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs