Class GridViewSelectColumn
GridViewSelectColumn provides an easy and fast way to select rows in RadGridView.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public class GridViewSelectColumn : GridViewColumn, IFilterableColumn, IFieldDescriptor, INotifyPropertyChanged, IColumnElement
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
System.Windows.DependencyProperty
|
HeaderCheckBoxStyleProperty
Identifies the HeaderCheckBoxStyle dependency property.
Declaration
public static readonly DependencyProperty HeaderCheckBoxStyleProperty
Field Value
System.Windows.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
System.Windows.Style
The CheckBox style. |
Header
Gets or sets the content of the column header.
Declaration
public override object Header { get; set; }
Property Value
System.Object
|
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
System.Windows.Style
The CheckBox style. |
Methods
CanEdit(Object)
Determines whether the data represented by the column can be edited.
Declaration
public override bool CanEdit(object item)
Parameters
System.Object
item
|
Returns
System.Boolean
|
Overrides
CanFilter()
Determines whether the data represented by the column can be filtered by the RadGridView control.
Declaration
public override bool CanFilter()
Returns
System.Boolean
|
Overrides
CanGroup()
Determines whether the data represented by the column can be grouped.
Declaration
public override bool CanGroup()
Returns
System.Boolean
|
Overrides
CanSort()
Determines whether the data represented by the column can be sorted.
Declaration
public override bool CanSort()
Returns
System.Boolean
|
Overrides
CreateCellElement(GridViewCell, Object)
Creates the element for the cell in view mode.
Declaration
public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
Parameters
GridViewCell
cell
|
System.Object
dataItem
|
Returns
System.Windows.FrameworkElement
|