ClassGridViewHeaderCell
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:
public class GridViewHeaderCell : GridViewCellBase, INotifyPropertyChanged
Inheritance: objectGridViewCellBaseGridViewHeaderCell
Implements:
Inherited Members
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
RoutedEvent
DropIndicatorBrushProperty
Identifies the DropIndicatorBrush dependency property.
Declaration
public static readonly DependencyProperty DropIndicatorBrushProperty
Field Value
DependencyProperty
DropIndicatorThicknessProperty
Identifies the DropIndicatorThickness dependency property.
Declaration
public static readonly DependencyProperty DropIndicatorThicknessProperty
Field Value
DependencyProperty
DropMarkPenProperty
Identifies the DropMarkPen dependency property.
Declaration
public static readonly DependencyProperty DropMarkPenProperty
Field Value
DependencyProperty
The identifier for the DropMarkPen property.
FieldFilterControlVisibilityProperty
Identifies the FieldFilterControlVisibility dependency property.
Declaration
public static readonly DependencyProperty FieldFilterControlVisibilityProperty
Field Value
DependencyProperty
FilteringUIVisibilityProperty
Identifies the FilteringUIVisibility dependency property.
Declaration
public static readonly DependencyProperty FilteringUIVisibilityProperty
Field Value
DependencyProperty
PreviewColumnsReorderingEvent
Identifies the PreviewColumnsReorderingEvent routed event.
Declaration
public static readonly RoutedEvent PreviewColumnsReorderingEvent
Field Value
RoutedEvent
SortingIndexProperty
Identifies the SortingIndex dependency property.
Declaration
public static readonly DependencyProperty SortingIndexProperty
Field Value
DependencyProperty
SortingStateProperty
Identifies the SortingState dependency property.
Declaration
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
public static readonly DependencyProperty TextAlignmentProperty
Field Value
DependencyProperty
TextDecorationsProperty
Identifies the TextDecorations dependency property.
Declaration
public static readonly DependencyProperty TextDecorationsProperty
Field Value
DependencyProperty
TextTrimmingProperty
Identifies the TextTrimming property.
Declaration
public static readonly DependencyProperty TextTrimmingProperty
Field Value
DependencyProperty
The identifier for the TextTrimming property.
TextWrappingProperty
Identifies the TextWrapping property.
Declaration
public static readonly DependencyProperty TextWrappingProperty
Field Value
DependencyProperty
Properties
DropIndicatorBrush
Controls the value of the DropIndicatorBrush property.
Declaration
public Brush DropIndicatorBrush { get; set; }
Property Value
Brush
DropIndicatorThickness
Controls the value of the DropIndicatorThickness property.
Declaration
public double DropIndicatorThickness { get; set; }
Property Value
DropMarkPen
Gets or sets a pen that is used to draw the drop line marker.
Declaration
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
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
public IFilteringControl FilteringControl { get; }
Property Value
FilteringUIVisibility
Gets or sets a value indicating whether the filtering funnel is displayed.
Declaration
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
public int SortingIndex { get; set; }
Property Value
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
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
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
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
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
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
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
oldColumn
The old column definition.
newColumn
The new column definition.
Overrides
Remarks
Coerces ContentTemplate and ContentTemplateSelector.
OnContentTemplateChanged(DataTemplate, DataTemplate)
Declaration
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
Parameters
oldContentTemplate
DataTemplate
newContentTemplate
DataTemplate
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
OnMouseLeftButtonDown(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
e
MouseButtonEventArgs
OnMouseLeftButtonUp(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
e
MouseButtonEventArgs
OnMouseRightButtonUp(MouseButtonEventArgs)
Declaration
protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
Parameters
e
MouseButtonEventArgs