skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GridViewBoundColumnBase

This class inherits from GridViewColumn and add some specific to Data properties such as DataType, DataFormatString.

Inheritance
System.Object
GridViewColumn
GridViewBoundColumnBase
GridViewCheckBoxColumn
GridViewComboBoxColumn
GridViewDataColumn
GridViewDynamicHyperlinkColumn
GridViewHyperlinkColumn
GridViewImageColumn
GridViewMaskedInputColumn
GridViewMultiColumnComboBoxColumn
Inherited Members
GridViewColumn.IsFilterableProperty
GridViewColumn.ShowDistinctFiltersProperty
GridViewColumn.ShowFieldFiltersProperty
GridViewColumn.ShouldGenerateFieldFilterEditorsProperty
GridViewColumn.ShowFilterButtonProperty
GridViewColumn.FilteringControlStyleProperty
GridViewColumn.IsFilteringDeferredProperty
GridViewColumn.FilterMemberTypeProperty
GridViewColumn.OptimizeDistinctFilterQueryProperty
GridViewColumn.DistinctValuesSearchModeProperty
GridViewColumn.EnableDistinctValuesFilteringProperty
GridViewColumn.WidthProperty
GridViewColumn.MinWidthProperty
GridViewColumn.MaxWidthProperty
GridViewColumn.TabStopModeProperty
GridViewColumn.FooterCellStyleProperty
GridViewColumn.GroupFooterCellStyleProperty
GridViewColumn.HeaderCellStyleProperty
GridViewColumn.EditTriggersProperty
GridViewColumn.IsFrozenProperty
GridViewColumn.CellStyleProperty
GridViewColumn.CellTemplateSelectorProperty
GridViewColumn.CellEditTemplateSelectorProperty
GridViewColumn.CellEditTemplateProperty
GridViewColumn.CellTemplateProperty
GridViewColumn.ToolTipTemplateProperty
GridViewColumn.ToolTipTemplateSelectorProperty
GridViewColumn.ShowToolTipOnTrimmedTextProperty
GridViewColumn.ToolTipShowDurationProperty
GridViewColumn.GroupFooterTemplateSelectorProperty
GridViewColumn.GroupFooterTemplateProperty
GridViewColumn.GroupHeaderTemplateSelectorProperty
GridViewColumn.GroupHeaderTemplateProperty
GridViewColumn.SortingStateProperty
GridViewColumn.IsSortableProperty
GridViewColumn.IsResizableProperty
GridViewColumn.IsGroupableProperty
GridViewColumn.IsReorderableProperty
GridViewColumn.SortingStateChangedEvent
GridViewColumn.IsReadOnlyProperty
GridViewColumn.TextAlignmentProperty
GridViewColumn.HeaderTextAlignmentProperty
GridViewColumn.TextWrappingProperty
GridViewColumn.HeaderTextWrappingProperty
GridViewColumn.FooterProperty
GridViewColumn.HeaderProperty
GridViewColumn.TextDecorationsProperty
GridViewColumn.HeaderTextDecorationsProperty
GridViewColumn.IsCustomSortingEnabledProperty
GridViewColumn.CellStyleSelectorProperty
GridViewColumn.GroupFooterCellStyleSelectorProperty
GridViewColumn.FooterTextAlignmentProperty
GridViewColumn.TextTrimmingProperty
GridViewColumn.HeaderTextTrimmingProperty
GridViewColumn.BackgroundProperty
GridViewColumn.IsVisibleProperty
GridViewColumn.DisplayIndexProperty
GridViewColumn.ShowColumnWhenGroupedProperty
GridViewColumn.SortingIndexProperty
GridViewColumn.IsSelectedProperty
GridViewColumn.CreateFieldFilterEditor()
GridViewColumn.CreateColumnFilterDescriptor()
GridViewColumn.ClearFilters()
GridViewColumn.GetFilteringDisplayString(Object)
GridViewColumn.SortDistinctValues(IQueryable)
GridViewColumn.SortDistinctValuesByFilteringDisplay(IQueryable)
GridViewColumn.OnPropertyChanged(PropertyChangedEventArgs)
GridViewColumn.OnPropertyChanged(String)
GridViewColumn.Refresh()
GridViewColumn.CreateCellEditElement(GridViewCell, Object)
GridViewColumn.GetAggregateResults(QueryableCollectionViewGroup)
GridViewColumn.OnAggregateFunctionsItemChanged(ItemChangedEventArgs<AggregateFunction>)
GridViewColumn.GetGridViewColumn(IFieldDescriptor)
GridViewColumn.OnInitialized(EventArgs)
GridViewColumn.CreateField()
GridViewColumn.IsFilterable
GridViewColumn.ShowDistinctFilters
GridViewColumn.ShowFieldFilters
GridViewColumn.ShouldGenerateFieldFilterEditors
GridViewColumn.ShowFilterButton
GridViewColumn.FilteringControlStyle
GridViewColumn.DistinctValuesSearchMode
GridViewColumn.EnableDistinctValuesFiltering
GridViewColumn.FilteringControl
GridViewColumn.ColumnFilterDescriptor
GridViewColumn.IsFilteringDeferred
GridViewColumn.FilterMemberPath
GridViewColumn.FilterMemberType
GridViewColumn.OptimizeDistinctFilterQuery
GridViewColumn.TargetFilters
GridViewColumn.Width
GridViewColumn.MinWidth
GridViewColumn.MaxWidth
GridViewColumn.ActualWidth
GridViewColumn.IsAutoGenerated
GridViewColumn.TabStopMode
GridViewColumn.EditTriggers
GridViewColumn.CellTemplateSelector
GridViewColumn.CellEditTemplateSelector
GridViewColumn.CellEditTemplate
GridViewColumn.CellTemplate
GridViewColumn.ToolTipTemplate
GridViewColumn.ToolTipTemplateSelector
GridViewColumn.ShowToolTipOnTrimmedText
GridViewColumn.ToolTipShowDuration
GridViewColumn.GroupFooterTemplateSelector
GridViewColumn.GroupFooterTemplate
GridViewColumn.GroupHeaderTemplateSelector
GridViewColumn.GroupHeaderTemplate
GridViewColumn.AggregateFunctions
GridViewColumn.IsReorderable
GridViewColumn.IsFrozen
GridViewColumn.IsRightSideFrozen
GridViewColumn.IsLeftSideFrozen
GridViewColumn.TextDecorations
GridViewColumn.HeaderTextDecorations
GridViewColumn.SortingState
GridViewColumn.IsGroupable
GridViewColumn.CellStyle
GridViewColumn.CellStyleSelector
GridViewColumn.IsResizable
GridViewColumn.IsSortable
GridViewColumn.HeaderCellStyle
GridViewColumn.FooterCellStyle
GridViewColumn.GroupFooterCellStyle
GridViewColumn.GroupFooterCellStyleSelector
GridViewColumn.TextAlignment
GridViewColumn.HeaderTextAlignment
GridViewColumn.FooterTextAlignment
GridViewColumn.TextWrapping
GridViewColumn.HeaderTextWrapping
GridViewColumn.TextTrimming
GridViewColumn.HeaderTextTrimming
GridViewColumn.IsCustomSortingEnabled
GridViewColumn.Background
GridViewColumn.IsVisible
GridViewColumn.UniqueName
GridViewColumn.SortMemberPath
GridViewColumn.GroupMemberPath
GridViewColumn.Footer
GridViewColumn.IsReadOnly
GridViewColumn.DataControl
GridViewColumn.DisplayIndex
GridViewColumn.GroupHeaderFormatString
GridViewColumn.ColumnGroupName
GridViewColumn.ItemType
GridViewColumn.ShowColumnWhenGrouped
GridViewColumn.SortingIndex
GridViewColumn.IsSelected
GridViewColumn.PropertyChanged
GridViewColumn.SortingStateChanged
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.GridView.dll

Syntax

public class GridViewBoundColumnBase : GridViewColumn, IFilterableColumn, INotifyPropertyChanged, IColumnElement, IDataFieldDescriptor, IFieldDescriptor, IExportableColumn

Constructors

GridViewBoundColumnBase()

Declaration
public GridViewBoundColumnBase()

Fields

DataFormatStringProperty

Identifies the DataFormatString dependency property.

Declaration
public static readonly DependencyProperty DataFormatStringProperty
Field Value
System.Windows.DependencyProperty

DataTypeProperty

Identifies the DataType dependency property.

Declaration
public static readonly DependencyProperty DataTypeProperty
Field Value
System.Windows.DependencyProperty

EditorStyleProperty

Identifies the EditorStyle dependency property.

Declaration
public static readonly DependencyProperty EditorStyleProperty
Field Value
System.Windows.DependencyProperty

IsSearchableProperty

Identifies the IsSearchable dependency property.

Declaration
public static readonly DependencyProperty IsSearchableProperty
Field Value
System.Windows.DependencyProperty

ValidatesOnDataErrorsProperty

Identifies the ValidatesOnDataErrors dependency property.

Declaration
public static readonly DependencyProperty ValidatesOnDataErrorsProperty
Field Value
System.Windows.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
System.Windows.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
System.String

The data format string.

Implements
IDataFieldDescriptor.DataFormatString
IExportableColumn.DataFormatString

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
System.Windows.Data.Binding

The display member binding.

Implements
IDataFieldDescriptor.DataMemberBinding

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
System.Type

The type for this bound column.

Implements
IDataFieldDescriptor.DataType

EditorStyle

Gets or sets the style which will be applied on the editor.

Declaration
public Style EditorStyle { get; set; }
Property Value
System.Windows.Style

The editor style.

ExportedElementWidth

Gets the actual width of the column.

Declaration
public double ExportedElementWidth { get; }
Property Value
System.Double

Implements
IExportableColumn.ExportedElementWidth

FilteringDisplayFunc

Gets the filtering display function.

Declaration
protected override Func<object, object> FilteringDisplayFunc { get; }
Property Value
System.Func<System.Object, System.Object>

The filtering display function.

Overrides
GridViewColumn.FilteringDisplayFunc
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
System.Object

Overrides
GridViewColumn.Header
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
System.Windows.Data.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
System.Boolean

true if in this column can be searched; otherwise, false.

SearchPanel

Gets the corresponding searchPanel.

Declaration
public GridViewSearchPanel SearchPanel { get; }
Property Value
GridViewSearchPanel

ValidatesOnDataErrors

Denotes in which mode GridViewBoundColumnBase will perform data validation.

Declaration
public GridViewValidationMode ValidatesOnDataErrors { get; set; }
Property Value
GridViewValidationMode

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.

Declaration
public override bool CanEdit(object item)
Parameters
System.Object item

Returns
System.Boolean

true if the data represented by the column can be edited; otherwise, false.

Overrides
GridViewColumn.CanEdit(Object)

CanFilter()

Determines whether the data represented by the column can be filtered by the RadGridView control.

Declaration
public override bool CanFilter()
Returns
System.Boolean

true if the data represented by the column can be filtered automatically; otherwise, false.

Overrides
GridViewColumn.CanFilter()

CanGroup()

Determines whether the data represented by the column can be grouped.

Declaration
public override bool CanGroup()
Returns
System.Boolean

true if the data represented by the column can be grouped; otherwise, false.

Overrides
GridViewColumn.CanGroup()
Implements
IDataFieldDescriptor.CanGroup()

CanSort()

Determines whether the data represented by the column can be sorted.

Declaration
public override bool CanSort()
Returns
System.Boolean

true if the data represented by the column can be sorted; otherwise, false.

Overrides
GridViewColumn.CanSort()
Implements
IDataFieldDescriptor.CanSort()

CopyPropertiesFrom(GridViewColumn)

Copy properties from source column.

Declaration
public override void CopyPropertiesFrom(GridViewColumn source)
Parameters
GridViewColumn source

Overrides
GridViewColumn.CopyPropertiesFrom(GridViewColumn)

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

Overrides
GridViewColumn.CreateCellElement(GridViewCell, Object)

GetCellContent(Object)

Gets the content of a cell that is associated with this column.

Declaration
protected virtual object GetCellContent(object item)
Parameters
System.Object item

The data item.

Returns
System.Object

Cell content.

GetDisplayCellContent(Object)

Generates the cell content of GridViewBoundColumnBase.

Declaration
protected virtual object GetDisplayCellContent(object item)
Parameters
System.Object item

Returns
System.Object

GetExportCellContent(Object)

Generates the exported cell content of IExportableColumn.

Declaration
protected virtual object GetExportCellContent(object item)
Parameters
System.Object item

Returns
System.Object

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.

Declaration
public virtual object GetNewValueFromEditor(object editor)
Parameters
System.Object editor

The editor.

Returns
System.Object

GetValueForItem(Object)

Gets the value associated with this column for provided data item.

Declaration
public object GetValueForItem(object item)
Parameters
System.Object item

The data item.

Returns
System.Object

OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs)

Called when the aggregate functions collection has changed.

Declaration
protected override void OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
System.Collections.Specialized.NotifyCollectionChangedEventArgs e

The System.Collections.Specialized.NotifyCollectionChangedEventArgs instance containing the event data.

Overrides
GridViewColumn.OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs)

OnCopyingCellClipboardContent(Object)

This method is called for each selected cell to retrieve the default cell content.

Declaration
public override object OnCopyingCellClipboardContent(object item)
Parameters
System.Object item

The data context for the selected element.

Returns
System.Object

An object that represents the content of the cell.

Overrides
GridViewColumn.OnCopyingCellClipboardContent(Object)

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.

Declaration
public override void OnPastingCellClipboardContent(object item, object value)
Parameters
System.Object item

The data context for the selected element.

System.Object value

The clipboard data for the selected cell.

Overrides
GridViewColumn.OnPastingCellClipboardContent(Object, Object)

PrepareCellForEdit(FrameworkElement, RoutedEventArgs)

Prepares GridViewCell for edit.

Declaration
protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
Parameters
System.Windows.FrameworkElement editingElement

The editing element.

System.Windows.RoutedEventArgs editingEventArgs

The System.Windows.RoutedEventArgs instance containing the event data.

Returns
System.Object

Overrides
GridViewColumn.PrepareCellForEdit(FrameworkElement, RoutedEventArgs)

RefreshCellElement(FrameworkElement, DependencyProperty)

Called when cell element needs refresh.

Declaration
protected override void RefreshCellElement(FrameworkElement element, DependencyProperty dependencyProperty)
Parameters
System.Windows.FrameworkElement element

System.Windows.DependencyProperty dependencyProperty

Overrides
GridViewColumn.RefreshCellElement(FrameworkElement, DependencyProperty)

UpdateSourceWithEditorValue(GridViewCell)

Updates the source with editor value.

Declaration
public virtual IList<string> UpdateSourceWithEditorValue(GridViewCell gridViewCell)
Parameters
GridViewCell gridViewCell

The GridViewCell instance which contains the editor.

Returns
System.Collections.Generic.IList<System.String>

Explicit Interface Implementations

IExportableColumn.GetCellContent(Object)

Declaration
object IExportableColumn.GetCellContent(object parameter)
Parameters
System.Object parameter

Returns
System.Object

Implements
IExportableColumn.GetCellContent(Object)

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.