ClassGridViewBoundColumnBase
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
GridViewBoundColumnBase()
Declaration
public GridViewBoundColumnBase()
Fields
DataFormatStringProperty
Identifies the DataFormatString dependency property.
Declaration
public static readonly DependencyProperty DataFormatStringProperty
Field Value
DependencyProperty
DataTypeProperty
Identifies the DataType dependency property.
Declaration
public static readonly DependencyProperty DataTypeProperty
Field Value
DependencyProperty
EditorStyleProperty
Identifies the EditorStyle dependency property.
Declaration
public static readonly DependencyProperty EditorStyleProperty
Field Value
DependencyProperty
IsSearchableProperty
Identifies the IsSearchable dependency property.
Declaration
public static readonly DependencyProperty IsSearchableProperty
Field Value
DependencyProperty
ValidatesOnDataErrorsProperty
Identifies the ValidatesOnDataErrors dependency property.
Declaration
public static readonly DependencyProperty ValidatesOnDataErrorsProperty
Field Value
DependencyProperty
Properties
BindingTarget
Gets or sets the Dependency property of the editor element of the GridViewBoundColumnBase which actually is used for Binding to data source property.
Declaration
protected DependencyProperty BindingTarget { get; set; }
Property Value
DependencyProperty
The binding target.
DataFormatString
Gets or sets the data format string. Used with string.Format statement. This is a dependency property.
Declaration
public string DataFormatString { get; set; }
Property Value
The data format string.
Implements
DataMemberBinding
Gets or sets the binding which points to the data member to display in the cells of the GridViewBoundColumnBase.
Declaration
public virtual Binding DataMemberBinding { get; set; }
Property Value
Binding
The display member binding.
Implements
DataType
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.
Declaration
public virtual Type DataType { get; set; }
Property Value
The type for this bound column.
Implements
EditorStyle
Gets or sets the style which will be applied on the editor.
Declaration
public Style EditorStyle { get; set; }
Property Value
Style
The editor style.
ExportedElementWidth
Gets the actual width of the column.
Declaration
public double ExportedElementWidth { get; }
Property Value
Implements
FilteringDisplayFunc
Gets the filtering display function.
Declaration
protected override Func<object, object> FilteringDisplayFunc { get; }
Property Value
The filtering display function.
Overrides
Remarks
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.
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.
IsReadOnlyBinding
Property that allows you to set individual columns into a readonly state using Binding.
Declaration
public Binding IsReadOnlyBinding { get; set; }
Property Value
Binding
IsSearchable
Gets or sets a value indicating whether this column will be included in Search as You Type functionality of RadGridView.
Declaration
public bool IsSearchable { get; set; }
Property Value
true if in this column can be searched; otherwise, false.
SearchPanel
Gets the corresponding searchPanel.
Declaration
public GridViewSearchPanel SearchPanel { get; }
Property Value
ValidatesOnDataErrors
Denotes in which mode GridViewBoundColumnBase will perform data validation.
Declaration
public GridViewValidationMode ValidatesOnDataErrors { get; set; }
Property Value
The default value is a combination between all modes (InViewMode and InEditMode).
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
Implements
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
Implements
CopyPropertiesFrom(GridViewColumn)
Copy properties from source column.
Declaration
public override void CopyPropertiesFrom(GridViewColumn source)
Parameters
source
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
GetCellContent(object)
Gets the content of a cell that is associated with this column.
GetDisplayCellContent(object)
Generates the cell content of GridViewBoundColumnBase.
GetExportCellContent(object)
Generates the exported cell content of IExportableColumn.
GetNewValueFromEditor(object)
Gets the new value from the editor. Used from the validation mechanism to get the new value before this value to be committed to the data source.
GetValueForItem(object)
Gets the value associated with this column for provided data item.
OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs)
Called when the aggregate functions collection has changed.
Declaration
protected override void OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
NotifyCollectionChangedEventArgs
The NotifyCollectionChangedEventArgs instance containing the event data.
Overrides
OnCopyingCellClipboardContent(object)
This method is called for each selected cell to retrieve the default cell content.
OnDataMemberBindingChanged()
Called when DataMemberBinding was changed.
Declaration
protected virtual void OnDataMemberBindingChanged()
OnPastingCellClipboardContent(object, object)
This method is called for each selected cell to replace the cell content with data from the clipboard.
PrepareCellForEdit(FrameworkElement, RoutedEventArgs)
Prepares GridViewCell for edit.
Declaration
protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
Parameters
editingElement
FrameworkElement
The editing element.
editingEventArgs
RoutedEventArgs
The RoutedEventArgs instance containing the event data.
Returns
Overrides
RefreshCellElement(FrameworkElement, DependencyProperty)
Called when cell element needs refresh.
Declaration
protected override void RefreshCellElement(FrameworkElement element, DependencyProperty dependencyProperty)
Parameters
element
FrameworkElement
dependencyProperty
DependencyProperty
Overrides
UpdateSourceWithEditorValue(GridViewCell)
Updates the source with editor value.
Declaration
public virtual IList<string> UpdateSourceWithEditorValue(GridViewCell gridViewCell)
Parameters
gridViewCell
The GridViewCell instance which contains the editor.
Returns