Class
DataGridComboBoxColumn

A special DataGridTextColumn implementation which cell value editor is a control.

Definition

Namespace:Telerik.UI.Xaml.Controls.Grid

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class DataGridComboBoxColumn : DataGridTextColumn, IExportableColumn

Inheritance: objectRadDependencyObjectDataGridColumnDataGridTypedColumnDataGridTextColumnDataGridComboBoxColumn

Implements: IExportableColumn

Inherited Members DataGridTextColumn.CellContentFormatPropertyDataGridTextColumn.ShowDistinctValuesFilterPropertyDataGridTextColumn.GetContainerType(object)DataGridTextColumn.CreateContainer(object)DataGridTextColumn.PrepareCell(object, object, object)DataGridTextColumn.GetCellContent(object)DataGridTextColumn.CellContentFormatDataGridTextColumn.ShowDistinctValuesFilterDataGridTypedColumn.PropertyNamePropertyDataGridTypedColumn.CellContentStylePropertyDataGridTypedColumn.CellContentStyleSelectorPropertyDataGridTypedColumn.CellEditorStylePropertyDataGridTypedColumn.GetValueForInstance(object)DataGridTypedColumn.PropertyNameDataGridTypedColumn.CellContentStyleDataGridTypedColumn.CellContentStyleSelectorDataGridTypedColumn.CellEditorStyleDataGridColumn.IsCellFlyoutEnabledPropertyDataGridColumn.CellDecorationStylePropertyDataGridColumn.CellDecorationStyleSelectorPropertyDataGridColumn.WidthPropertyDataGridColumn.SizeModePropertyDataGridColumn.HeaderPropertyDataGridColumn.SortDirectionPropertyDataGridColumn.HeaderStylePropertyDataGridColumn.CanUserGroupPropertyDataGridColumn.CanUserFilterPropertyDataGridColumn.CanUserSortPropertyDataGridColumn.CanUserResizePropertyDataGridColumn.CanUserReorderPropertyDataGridColumn.CanUserEditPropertyDataGridColumn.NamePropertyDataGridColumn.DataOperationsFlyoutTemplatePropertyDataGridColumn.IsVisiblePropertyDataGridColumn.AggregatesTemplatePropertyDataGridColumn.ClearCell(object)DataGridColumn.CreateDecorationContainer(object)DataGridColumn.UpdateFilterVisualState(bool)DataGridColumn.IsCellFlyoutEnabledDataGridColumn.CellDecorationStyleDataGridColumn.CellDecorationStyleSelectorDataGridColumn.AggregatesTemplateDataGridColumn.NameDataGridColumn.CanUserEditDataGridColumn.CanUserResizeDataGridColumn.CanUserFilterDataGridColumn.CanUserReorderDataGridColumn.CanUserGroupDataGridColumn.CanUserSortDataGridColumn.IsVisibleDataGridColumn.HeaderStyleDataGridColumn.SizeModeDataGridColumn.WidthDataGridColumn.ActualWidthDataGridColumn.IsAutoGeneratedDataGridColumn.HeaderDataGridColumn.SortDirectionDataGridColumn.DataOperationsFlyoutTemplateDataGridColumn.SupportsCompositeFilter

Constructors

DataGridComboBoxColumn()

Declaration

cs-api-definition
public DataGridComboBoxColumn()

Fields

DisplayMemberPathProperty

Identifies the DisplayMemberPath dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisplayMemberPathProperty

Field Value

DependencyProperty

ItemsSourcePathProperty

Identifies the ItemsSourcePath dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemsSourcePathProperty

Field Value

DependencyProperty

ItemsSourceProperty

Identifies the ItemsSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemsSourceProperty

Field Value

DependencyProperty

SelectedValuePathProperty

Identifies the SelectedValuePath dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedValuePathProperty

Field Value

DependencyProperty

Properties

DisplayMemberPath

Gets or sets the display member path for the combobox editor.

Declaration

cs-api-definition
public string DisplayMemberPath { get; set; }

Property Value

string

ItemsSource

Gets or sets the items source for the editor.

Declaration

cs-api-definition
public object ItemsSource { get; set; }

Property Value

object

ItemsSourcePath

Gets or sets the path of the property that will be used as an items source for the editor.

Declaration

cs-api-definition
public string ItemsSourcePath { get; set; }

Property Value

string

SelectedValuePath

Gets or sets the path of the property that is set as column value when an item is selected in the combobox editor.

Declaration

cs-api-definition
public string SelectedValuePath { get; set; }

Property Value

string

Methods

ClearEditorContentVisual(FrameworkElement)

Clears all bindings and content set to the ComboBox visualized when entering edit mode.

Declaration

cs-api-definition
public override void ClearEditorContentVisual(FrameworkElement editorContent)

Parameters

editorContent

FrameworkElement

The editor itself.

Overrides DataGridTextColumn.ClearEditorContentVisual(FrameworkElement)

CreateEditorContentVisual()

Creates an instance of a ComboBox used by the column when entering edit mode.

Declaration

cs-api-definition
public override FrameworkElement CreateEditorContentVisual()

Returns

FrameworkElement

An instance of the editor.

Overrides DataGridTextColumn.CreateEditorContentVisual()

CreateFilterControl()

Creates the DataGridTextFilterControl instance that allows filtering operation to be applied upon this column.

Declaration

cs-api-definition
protected override DataGridFilterControlBase CreateFilterControl()

Returns

DataGridFilterControlBase

Overrides DataGridTextColumn.CreateFilterControl()

CreateGroupDescriptor()

Creates the GroupDescriptorBase instance that is used to group by this column through the user interface.

Declaration

cs-api-definition
protected override GroupDescriptorBase CreateGroupDescriptor()

Returns

GroupDescriptorBase

Overrides DataGridTypedColumn.CreateGroupDescriptor()

CreateSortDescriptor()

Creates the SortDescriptorBase instance that is used to sort by this column through the user interface.

Declaration

cs-api-definition
protected override SortDescriptorBase CreateSortDescriptor()

Returns

SortDescriptorBase

Overrides DataGridTypedColumn.CreateSortDescriptor()

GetDisplayValueForInstance(object)

Declaration

cs-api-definition
public object GetDisplayValueForInstance(object instance)

Parameters

instance

object

Returns

object

GetEditorType(object)

Gets the type of the editor for the DataGridComboBoxColumn that is visualized when entering in edit mode.

Declaration

cs-api-definition
public override object GetEditorType(object item)

Parameters

item

object

Returns

object

The type of the editor.

Overrides DataGridTextColumn.GetEditorType(object)

PrepareEditorContentVisual(FrameworkElement, Binding)

Prepares all bindings and content set to the ComboBox visualized when entering edit mode.

Declaration

cs-api-definition
public override void PrepareEditorContentVisual(FrameworkElement editorContent, Binding binding)

Parameters

editorContent

FrameworkElement

The editor itself.

binding

Binding

The binding set to the editor of the cell.

Overrides DataGridTextColumn.PrepareEditorContentVisual(FrameworkElement, Binding)