GridViewSelectColumn
GridViewSelectColumn provides an easy and fast way to select rows in RadGridView.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewSelectColumn : GridViewColumn, IFieldDescriptor, INotifyPropertyChanged
Inheritance: objectGridViewColumnGridViewSelectColumn
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewSelectColumn class.
public GridViewSelectColumn()
Fields
CheckBoxStyleProperty
DependencyProperty
Identifies the CheckBoxStyle dependency property.
public static readonly DependencyProperty CheckBoxStyleProperty
HeaderCheckBoxStyleProperty
DependencyProperty
Identifies the HeaderCheckBoxStyle dependency property.
public static readonly DependencyProperty HeaderCheckBoxStyleProperty
Properties
CheckBoxStyle
Style
Gets or sets the style to be applied for the CheckBox in that column.
public Style CheckBoxStyle { get; set; }
The CheckBox style.
Gets or sets the content of the column header.
public override object Header { get; set; }
Overrides:
The ElementName binding does not work when used in column Header or CellTemplate. The problem comes from the fact that binding engine uses FindName method on FrameworkElement to find the target just once. So when element is loaded with LoadContent() – the element is not yet in the visual tree and FindName fails. As a solution, you can apply a Style to set the ContentTemplate.
HeaderCheckBoxStyle
Style
Gets or sets the style to be applied for the CheckBox in that column header.
public Style HeaderCheckBoxStyle { get; set; }
The CheckBox style.
Methods
Determines whether the data represented by the column can be filtered by the RadGridView control.
public override bool CanFilter()
true if the data represented by the column can be filtered automatically; otherwise, false.
Overrides:
Determines whether the data represented by the column can be grouped.
public override bool CanGroup()
true if the data represented by the column can be grouped; otherwise, false.
Overrides:
Determines whether the data represented by the column can be sorted.
public override bool CanSort()
true if the data represented by the column can be sorted; otherwise, false.
Overrides:
CreateCellElement(GridViewCell, object)
FrameworkElement
Creates the element for the cell in view mode.
public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
FrameworkElement
Overrides: