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.

Definition

Namespace:Telerik.Windows.Controls.GridView

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

cs-api-definition
public class GridViewHeaderCell : GridViewCellBase, INotifyPropertyChanged

Inheritance: objectGridViewCellBaseGridViewHeaderCell

Implements: INotifyPropertyChanged

Inherited Members GridViewCellBase.CellDoubleClickEventGridViewCellBase.VerticalGridLinesBrushPropertyGridViewCellBase.VerticalGridLinesWidthPropertyGridViewCellBase.OnMouseDoubleClick(MouseButtonEventArgs)GridViewCellBase.OnMouseEnter(MouseEventArgs)GridViewCellBase.OnMouseLeave(MouseEventArgs)GridViewCellBase.OnPropertyChanged(PropertyChangedEventArgs)GridViewCellBase.ColumnGridViewCellBase.ParentRowGridViewCellBase.ParentDataControlGridViewCellBase.DataColumnGridViewCellBase.VerticalGridLinesBrushGridViewCellBase.VerticalGridLinesWidthGridViewCellBase.CellDoubleClickGridViewCellBase.PropertyChanged

Constructors

GridViewHeaderCell()

Initializes a new instance of the GridViewHeaderCell class.

Declaration

cs-api-definition
public GridViewHeaderCell()

Fields

ColumnsReorderingEvent

Identifies the ColumnsReorderingEvent routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ColumnsReorderingEvent

Field Value

RoutedEvent

DropIndicatorBrushProperty

Identifies the DropIndicatorBrush dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DropIndicatorBrushProperty

Field Value

DependencyProperty

DropIndicatorThicknessProperty

Identifies the DropIndicatorThickness dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DropIndicatorThicknessProperty

Field Value

DependencyProperty

DropMarkPenProperty

Identifies the DropMarkPen dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DropMarkPenProperty

Field Value

DependencyProperty

The identifier for the DropMarkPen property.

FieldFilterControlVisibilityProperty

Identifies the FieldFilterControlVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FieldFilterControlVisibilityProperty

Field Value

DependencyProperty

FilteringUIVisibilityProperty

Identifies the FilteringUIVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilteringUIVisibilityProperty

Field Value

DependencyProperty

PreviewColumnsReorderingEvent

Identifies the PreviewColumnsReorderingEvent routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PreviewColumnsReorderingEvent

Field Value

RoutedEvent

SortingIndexProperty

Identifies the SortingIndex dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SortingIndexProperty

Field Value

DependencyProperty

SortingStateProperty

Identifies the SortingState dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SortingStateProperty

Field Value

DependencyProperty

TextAlignmentProperty

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

Declaration

cs-api-definition
public static readonly DependencyProperty TextAlignmentProperty

Field Value

DependencyProperty

TextDecorationsProperty

Identifies the TextDecorations dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextDecorationsProperty

Field Value

DependencyProperty

TextTrimmingProperty

Identifies the TextTrimming property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextTrimmingProperty

Field Value

DependencyProperty

The identifier for the TextTrimming property.

TextWrappingProperty

Identifies the TextWrapping property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextWrappingProperty

Field Value

DependencyProperty

Properties

DropIndicatorBrush

Controls the value of the DropIndicatorBrush property.

Declaration

cs-api-definition
public Brush DropIndicatorBrush { get; set; }

Property Value

Brush

DropIndicatorThickness

Controls the value of the DropIndicatorThickness property.

Declaration

cs-api-definition
public double DropIndicatorThickness { get; set; }

Property Value

double

DropMarkPen

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

Declaration

cs-api-definition
public Pen DropMarkPen { get; set; }

Property Value

Pen

The default value is null.

FieldFilterControlVisibility

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

Declaration

cs-api-definition
public Visibility FieldFilterControlVisibility { get; set; }

Property Value

Visibility

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

FilteringControl

Gets or sets the control used for filtering.

Declaration

cs-api-definition
public IFilteringControl FilteringControl { get; }

Property Value

IFilteringControl

FilteringUIVisibility

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

Declaration

cs-api-definition
public Visibility FilteringUIVisibility { get; set; }

Property Value

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

cs-api-definition
public int SortingIndex { get; set; }

Property Value

int

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

cs-api-definition
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

cs-api-definition
public TextAlignment TextAlignment { get; set; }

Property Value

TextAlignment

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

TextDecorations

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

Declaration

cs-api-definition
public TextDecorationCollection TextDecorations { get; set; }

Property Value

TextDecorationCollection

TextTrimming

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

Declaration

cs-api-definition
public TextTrimming TextTrimming { get; set; }

Property Value

TextTrimming

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

TextWrapping

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

Declaration

cs-api-definition
public TextWrapping TextWrapping { get; set; }

Property Value

TextWrapping

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

Methods

OnApplyTemplate()

Declaration

cs-api-definition
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

cs-api-definition
protected override void OnColumnChanged(GridViewColumn oldColumn, GridViewColumn newColumn)

Parameters

oldColumn

GridViewColumn

The old column definition.

newColumn

GridViewColumn

The new column definition.

Overrides GridViewCellBase.OnColumnChanged(GridViewColumn, GridViewColumn)

Remarks

Coerces ContentTemplate and ContentTemplateSelector.

OnContentTemplateChanged(DataTemplate, DataTemplate)

Declaration

cs-api-definition
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)

Parameters

oldContentTemplate

DataTemplate

newContentTemplate

DataTemplate

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnInitialized(EventArgs)

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

OnMouseLeftButtonDown(MouseButtonEventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

OnMouseLeftButtonUp(MouseButtonEventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

OnMouseRightButtonUp(MouseButtonEventArgs)

Declaration

cs-api-definition
protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs