ClassGridViewSelectColumn
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
GridViewSelectColumn()
Initializes a new instance of the GridViewSelectColumn class.
Declaration
public GridViewSelectColumn()
Fields
CheckBoxStyleProperty
Identifies the CheckBoxStyle dependency property.
Declaration
public static readonly DependencyProperty CheckBoxStyleProperty
Field Value
DependencyProperty
HeaderCheckBoxStyleProperty
Identifies the HeaderCheckBoxStyle dependency property.
Declaration
public static readonly DependencyProperty HeaderCheckBoxStyleProperty
Field Value
DependencyProperty
Properties
CheckBoxStyle
Gets or sets the style to be applied for the CheckBox in that column.
Declaration
public Style CheckBoxStyle { get; set; }
Property Value
Style
The CheckBox style.
Header
Gets or sets the content of the column header.
Declaration
public override object Header { get; set; }
Property Value
Overrides
Remarks
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
Gets or sets the style to be applied for the CheckBox in that column header.
Declaration
public Style HeaderCheckBoxStyle { get; set; }
Property Value
Style
The CheckBox style.
Methods
CanEdit(object)
Determines whether the data represented by the column can be edited.
CanFilter()
Determines whether the data represented by the column can be filtered by the RadGridView control.
Declaration
public override bool CanFilter()
Returns
true if the data represented by the column can be filtered automatically; otherwise, false.
Overrides
CanGroup()
Determines whether the data represented by the column can be grouped.
Declaration
public override bool CanGroup()
Returns
true if the data represented by the column can be grouped; otherwise, false.
Overrides
CanSort()
Determines whether the data represented by the column can be sorted.
Declaration
public override bool CanSort()
Returns
true if the data represented by the column can be sorted; otherwise, false.
Overrides
CreateCellElement(GridViewCell, object)
Creates the element for the cell in view mode.
Declaration
public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
Parameters
cell
dataItem
Returns
FrameworkElement
Overrides