ClassGridViewComboBoxColumn
GridViewComboBoxColumn provides an easy and fast way to display and edit lookup data. The key properties to set are : valueMemberPath, DisplayMemberPath and ItemsSource.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewComboBoxColumn : GridViewBoundColumnBase, INotifyPropertyChanged, IDataFieldDescriptor, IFieldDescriptor, IExportableColumn
Inheritance: objectGridViewColumnGridViewBoundColumnBaseGridViewComboBoxColumn
Implements:
Inherited Members
Constructors
GridViewComboBoxColumn()
Declaration
public GridViewComboBoxColumn()
Fields
DisplayMemberPathProperty
Represents the DisplayMemberPath dependency property.
Declaration
public static readonly DependencyProperty DisplayMemberPathProperty
Field Value
DependencyProperty
EmptyTextProperty
Represents the EmptyText dependency property.
Declaration
public static readonly DependencyProperty EmptyTextProperty
Field Value
DependencyProperty
IsComboBoxEditableProperty
Represents the IsComboBoxEditable dependency property.
Declaration
public static readonly DependencyProperty IsComboBoxEditableProperty
Field Value
DependencyProperty
IsLightweightModeEnabledProperty
Represents the IsLightweightModeEnabled dependency property.
Declaration
public static readonly DependencyProperty IsLightweightModeEnabledProperty
Field Value
DependencyProperty
ItemTemplateProperty
Represents the ItemTemplate dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateProperty
Field Value
DependencyProperty
ItemsSourceProperty
Represents the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
DependencyProperty
SelectedValueMemberPathProperty
Represents the ValueMemberPath dependency property.
Declaration
public static readonly DependencyProperty SelectedValueMemberPathProperty
Field Value
DependencyProperty
Properties
DisplayMemberPath
Gets or sets the path to the property containing the data to display.
Declaration
public string DisplayMemberPath { get; set; }
Property Value
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.
IsComboBoxEditable
Gets or sets a value indicating whether the user can edit text in the text box portion of the ComboBox editor.
IsLightweightModeEnabled
Gets or sets a value indicating whether the LightweightMode of the ComboBoxColumn is enabled.
Declaration
public bool IsLightweightModeEnabled { get; set; }
Property Value
ItemTemplate
Gets or sets the item template used to represent the selected item in cells.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
DataTemplate
The item template.
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
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
Binding
The default value is null
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
IValueConverter
The lookup value converter.
SelectedValueMemberPath
Gets or sets the value member path.
Declaration
public string SelectedValueMemberPath { get; set; }
Property Value
The value member path.
Methods
CopyPropertiesFrom(GridViewColumn)
Copy properties from source column.
Declaration
public override void CopyPropertiesFrom(GridViewColumn source)
Parameters
source
Overrides
CreateCellEditElement(GridViewCell, object)
Creates the element for the cell in edit mode.
Declaration
public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
Parameters
cell
dataItem
Returns
FrameworkElement
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.
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
Refresh()
Refresh this column cells.
Declaration
protected override void Refresh()
Overrides
SortDistinctValues(IQueryable)
Sorts the distinct values.
Declaration
protected override IQueryable SortDistinctValues(IQueryable source)
Parameters
source
The unsorted distinct values.
Returns
The sorted distinct values.
Overrides