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:
public class GridViewHeaderCell : GridViewCellBase, INotifyPropertyChanged
Inheritance: objectGridViewCellBaseGridViewHeaderCell
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewHeaderCell class.
public GridViewHeaderCell()
Fields
ColumnsReorderingEvent
RoutedEvent
Identifies the ColumnsReorderingEvent routed event.
public static readonly RoutedEvent ColumnsReorderingEvent
DropIndicatorBrushProperty
DependencyProperty
Identifies the DropIndicatorBrush dependency property.
public static readonly DependencyProperty DropIndicatorBrushProperty
DropIndicatorThicknessProperty
DependencyProperty
Identifies the DropIndicatorThickness dependency property.
public static readonly DependencyProperty DropIndicatorThicknessProperty
DropMarkPenProperty
DependencyProperty
Identifies the DropMarkPen dependency property.
public static readonly DependencyProperty DropMarkPenProperty
The identifier for the DropMarkPen property.
FieldFilterControlVisibilityProperty
DependencyProperty
Identifies the FieldFilterControlVisibility dependency property.
public static readonly DependencyProperty FieldFilterControlVisibilityProperty
FilteringUIVisibilityProperty
DependencyProperty
Identifies the FilteringUIVisibility dependency property.
public static readonly DependencyProperty FilteringUIVisibilityProperty
PreviewColumnsReorderingEvent
RoutedEvent
Identifies the PreviewColumnsReorderingEvent routed event.
public static readonly RoutedEvent PreviewColumnsReorderingEvent
SortingIndexProperty
DependencyProperty
Identifies the SortingIndex dependency property.
public static readonly DependencyProperty SortingIndexProperty
SortingStateProperty
DependencyProperty
Identifies the SortingState dependency property.
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.
public static readonly DependencyProperty TextAlignmentProperty
TextDecorationsProperty
DependencyProperty
Identifies the TextDecorations dependency property.
public static readonly DependencyProperty TextDecorationsProperty
TextTrimmingProperty
DependencyProperty
Identifies the TextTrimming property.
public static readonly DependencyProperty TextTrimmingProperty
The identifier for the TextTrimming property.
TextWrappingProperty
DependencyProperty
Identifies the TextWrapping property.
public static readonly DependencyProperty TextWrappingProperty
Properties
DropIndicatorBrush
Brush
Controls the value of the DropIndicatorBrush property.
public Brush DropIndicatorBrush { get; set; }
Controls the value of the DropIndicatorThickness property.
public double DropIndicatorThickness { get; set; }
DropMarkPen
Pen
Gets or sets a pen that is used to draw the drop line marker.
public Pen DropMarkPen { get; set; }
The default value is null.
FieldFilterControlVisibility
Visibility
Gets or sets a value indicating whether the custom filter row element is displayed.
public Visibility FieldFilterControlVisibility { get; set; }
true if the custom filter row element is displayed; otherwise, false.
Gets or sets the control used for filtering.
public IFilteringControl FilteringControl { get; }
FilteringUIVisibility
Visibility
Gets or sets a value indicating whether the filtering funnel is displayed.
public Visibility FilteringUIVisibility { get; set; }
true if the filtering funnel is displayed; otherwise, false.
Gets the sorting index of the column when there is multiple column sorting.
public int SortingIndex { get; set; }
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.
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.
public TextAlignment TextAlignment { get; set; }
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.
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.
public TextTrimming TextTrimming { get; set; }
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.
public TextWrapping TextWrapping { get; set; }
TextWrapping that will be used to wrap the text in the header cell. The default value is
Methods
public override void OnApplyTemplate()
Called due to the cell's column definition changing. Not called due to changes within the current column definition.
protected override void OnColumnChanged(GridViewColumn oldColumn, GridViewColumn newColumn)
The old column definition.
newColumnGridViewColumnThe new column definition.
Overrides:
Coerces ContentTemplate and ContentTemplateSelector.
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
OnCreateAutomationPeer()
AutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)