skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GridViewComboBoxColumn

GridViewComboBoxColumn provides an easy and fast way to display and edit lookup data. The key properties to set are : valueMemberPath, DisplayMemberPath and ItemsSource.

Inheritance
System.Object
GridViewColumn
GridViewBoundColumnBase
GridViewComboBoxColumn
Inherited Members
GridViewBoundColumnBase.IsSearchableProperty
GridViewBoundColumnBase.EditorStyleProperty
GridViewBoundColumnBase.ValidatesOnDataErrorsProperty
GridViewBoundColumnBase.DataTypeProperty
GridViewBoundColumnBase.DataFormatStringProperty
GridViewBoundColumnBase.IExportableColumn.GetCellContent(Object)
GridViewBoundColumnBase.RefreshCellElement(FrameworkElement, DependencyProperty)
GridViewBoundColumnBase.OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs)
GridViewBoundColumnBase.CanEdit(Object)
GridViewBoundColumnBase.OnDataMemberBindingChanged()
GridViewBoundColumnBase.CanSort()
GridViewBoundColumnBase.CanGroup()
GridViewBoundColumnBase.GetValueForItem(Object)
GridViewBoundColumnBase.GetNewValueFromEditor(Object)
GridViewBoundColumnBase.UpdateSourceWithEditorValue(GridViewCell)
GridViewBoundColumnBase.OnCopyingCellClipboardContent(Object)
GridViewBoundColumnBase.GetExportCellContent(Object)
GridViewBoundColumnBase.CanFilter()
GridViewBoundColumnBase.ExportedElementWidth
GridViewBoundColumnBase.IsSearchable
GridViewBoundColumnBase.EditorStyle
GridViewBoundColumnBase.ValidatesOnDataErrors
GridViewBoundColumnBase.Header
GridViewBoundColumnBase.BindingTarget
GridViewBoundColumnBase.IsReadOnlyBinding
GridViewBoundColumnBase.DataType
GridViewBoundColumnBase.DataFormatString
GridViewBoundColumnBase.DataMemberBinding
GridViewBoundColumnBase.SearchPanel
GridViewBoundColumnBase.FilteringDisplayFunc
GridViewColumn.IsFilterableProperty
GridViewColumn.ShowDistinctFiltersProperty
GridViewColumn.ShowFieldFiltersProperty
GridViewColumn.ShouldGenerateFieldFilterEditorsProperty
GridViewColumn.ShowFilterButtonProperty
GridViewColumn.FilteringControlStyleProperty
GridViewColumn.IsFilteringDeferredProperty
GridViewColumn.FilterMemberTypeProperty
GridViewColumn.OptimizeDistinctFilterQueryProperty
GridViewColumn.DistinctValuesDisplayModeProperty
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.SortDistinctValuesByFilteringDisplay(IQueryable)
GridViewColumn.OnPropertyChanged(PropertyChangedEventArgs)
GridViewColumn.OnPropertyChanged(String)
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.DistinctValuesDisplayMode
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 GridViewComboBoxColumn : GridViewBoundColumnBase, IFilterableColumn, INotifyPropertyChanged, IColumnElement, IDataFieldDescriptor, IFieldDescriptor, IExportableColumn

Constructors

GridViewComboBoxColumn()

Declaration
public GridViewComboBoxColumn()

Fields

DisplayMemberPathProperty

Represents the DisplayMemberPath dependency property.

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

EmptyTextProperty

Represents the EmptyText dependency property.

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

IsComboBoxEditableProperty

Represents the IsComboBoxEditable dependency property.

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

IsLightweightModeEnabledProperty

Represents the IsLightweightModeEnabled dependency property.

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

ItemsSourceProperty

Represents the ItemsSource dependency property.

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

ItemTemplateProperty

Represents the ItemTemplate dependency property.

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

SelectedValueMemberPathProperty

Represents the ValueMemberPath dependency property.

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

Properties

DisplayMemberPath

Gets or sets the path to the property containing the data to display.

Declaration
public string DisplayMemberPath { get; set; }
Property Value
System.String

The display member path.

EmptyText

Gets or sets a string that should be displayed in the GridViewCell element when there is no selection in the GridViewComboBoxColumn. This is a dependency property.

Declaration
public string EmptyText { get; set; }
Property Value
System.String

IsComboBoxEditable

Gets or sets a value indicating whether the user can edit text in the text box portion of the ComboBox editor.

Declaration
public bool IsComboBoxEditable { get; set; }
Property Value
System.Boolean

IsLightweightModeEnabled

Gets or sets a value indicating whether the LightweightMode of the ComboBoxColumn is enabled.

Declaration
public bool IsLightweightModeEnabled { get; set; }
Property Value
System.Boolean

ItemsSource

Gets or sets the the list of items used in the column to display lookup data. The ComboBox editor will also attach to this ItemsSource.

Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
System.Collections.IEnumerable

The items source.

ItemsSourceBinding

Gets or sets the Binding for the ComboBoxEditor ItemsSource. This is a dependency property.

Declaration
public Binding ItemsSourceBinding { get; set; }
Property Value
System.Windows.Data.Binding

The default value is null

ItemTemplate

Gets or sets the item template used to represent the selected item in cells.

Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
System.Windows.DataTemplate

The item template.

LookupValueConverter

Gets or sets the lookup value converter used to convert value member value to display value.

Declaration
public IValueConverter LookupValueConverter { get; set; }
Property Value
System.Windows.Data.IValueConverter

The lookup value converter.

SelectedValueMemberPath

Gets or sets the value member path.

Declaration
public string SelectedValueMemberPath { get; set; }
Property Value
System.String

The value member path.

Methods

CopyPropertiesFrom(GridViewColumn)

Copy properties from source column.

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

Overrides
GridViewBoundColumnBase.CopyPropertiesFrom(GridViewColumn)

CreateCellEditElement(GridViewCell, Object)

Creates the element for the cell in edit mode.

Declaration
public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
Parameters
GridViewCell cell

System.Object dataItem

Returns
System.Windows.FrameworkElement

Overrides
GridViewColumn.CreateCellEditElement(GridViewCell, Object)

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
GridViewBoundColumnBase.CreateCellElement(GridViewCell, Object)

GetCellContent(Object)

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

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

The data item.

Returns
System.Object

Cell content.

Overrides
GridViewBoundColumnBase.GetCellContent(Object)

GetDisplayCellContent(Object)

Generates the cell content of GridViewBoundColumnBase.

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

Returns
System.Object

Overrides
GridViewBoundColumnBase.GetDisplayCellContent(Object)

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
GridViewBoundColumnBase.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
GridViewBoundColumnBase.PrepareCellForEdit(FrameworkElement, RoutedEventArgs)

Refresh()

Refresh this column cells.

Declaration
protected override void Refresh()
Overrides
GridViewColumn.Refresh()

SortDistinctValues(IQueryable)

Sorts the distinct values.

Declaration
protected override IQueryable SortDistinctValues(IQueryable source)
Parameters
System.Linq.IQueryable source

The unsorted distinct values.

Returns
System.Linq.IQueryable

The sorted distinct values.

Overrides
GridViewColumn.SortDistinctValues(IQueryable)

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
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.