This class inherits from GridViewColumn and add some specific to Data properties such as DataType, DataFormatString.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewBoundColumnBase : GridViewColumn, INotifyPropertyChanged, IDataFieldDescriptor, IFieldDescriptor, IExportableColumn
Inheritance: objectGridViewColumnGridViewBoundColumnBase
Derived Classes:
Implements:
Inherited Members
Constructors
public GridViewBoundColumnBase()
Fields
DataFormatStringProperty
DependencyProperty
Identifies the DataFormatString dependency property.
public static readonly DependencyProperty DataFormatStringProperty
DataTypeProperty
DependencyProperty
Identifies the DataType dependency property.
public static readonly DependencyProperty DataTypeProperty
EditorStyleProperty
DependencyProperty
Identifies the EditorStyle dependency property.
public static readonly DependencyProperty EditorStyleProperty
IsSearchableProperty
DependencyProperty
Identifies the IsSearchable dependency property.
public static readonly DependencyProperty IsSearchableProperty
ValidatesOnDataErrorsProperty
DependencyProperty
Identifies the ValidatesOnDataErrors dependency property.
public static readonly DependencyProperty ValidatesOnDataErrorsProperty
Properties
BindingTarget
DependencyProperty
Gets or sets the Dependency property of the editor element of the GridViewBoundColumnBase which actually is used for Binding to data source property.
protected DependencyProperty BindingTarget { get; set; }
The binding target.
Gets or sets the data format string. Used with string.Format statement. This is a dependency property.
public string DataFormatString { get; set; }
The data format string.
Implements:
DataMemberBinding
Binding
Gets or sets the binding which points to the data member to display in the cells of the GridViewBoundColumnBase.
public virtual Binding DataMemberBinding { get; set; }
The display member binding.
Implements:
Gets or sets the data type of the column. This usually reflects the type of the member that this column is bound to. This is a dependency property.
public virtual Type DataType { get; set; }
The type for this bound column.
Implements:
EditorStyle
Style
Gets or sets the style which will be applied on the editor.
public Style EditorStyle { get; set; }
The editor style.
Gets the actual width of the column.
public double ExportedElementWidth { get; }
Implements:
Gets the filtering display function.
protected override Func<object, object> FilteringDisplayFunc { get; }
The filtering display function.
Overrides:
This function is used by the filtering control distinct values list. It accepts a raw data value and returns what will become the content of the distinct value checkbox.
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.
IsReadOnlyBinding
Binding
Property that allows you to set individual columns into a readonly state using Binding.
public Binding IsReadOnlyBinding { get; set; }
Gets or sets a value indicating whether this column will be included in Search as You Type functionality of RadGridView.
public bool IsSearchable { get; set; }
true if in this column can be searched; otherwise, false.
Gets the corresponding searchPanel.
public GridViewSearchPanel SearchPanel { get; }
Denotes in which mode GridViewBoundColumnBase will perform data validation.
public GridViewValidationMode ValidatesOnDataErrors { get; set; }
The default value is a combination between all modes (InViewMode and InEditMode).
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:
Implements:
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:
Implements:
Copy properties from source column.
public override void CopyPropertiesFrom(GridViewColumn source)
Overrides:
CreateCellElement(GridViewCell, object)
FrameworkElement
Creates the element for the cell in view mode.
public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
FrameworkElement
Overrides:
Called when the aggregate functions collection has changed.
protected override void OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs e)
The NotifyCollectionChangedEventArgs instance containing the event data.
Overrides:
Called when DataMemberBinding was changed.
protected virtual void OnDataMemberBindingChanged()
This method is called for each selected cell to replace the cell content with data from the clipboard.
Prepares GridViewCell for edit.
protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
The editing element.
editingEventArgsRoutedEventArgsThe RoutedEventArgs instance containing the event data.
Returns:Overrides:
Called when cell element needs refresh.
protected override void RefreshCellElement(FrameworkElement element, DependencyProperty dependencyProperty)
Overrides:
Updates the source with editor value.
public virtual IList<string> UpdateSourceWithEditorValue(GridViewCell gridViewCell)
The GridViewCell instance which contains the editor.
Returns: