DataGridComboBoxColumn.GenerateEditingElement(DataGridCell, Object) Method

Definition

Gets a combo box control that is bound to the column's SelectedItemBinding, SelectedValueBinding, and TextBinding values.

protected override System.Windows.FrameworkElement GenerateEditingElement (System.Windows.Controls.DataGridCell cell, object dataItem);

Parameters

cell
DataGridCell

The cell that will contain the generated element.

dataItem
Object

The data item represented by the row that contains the intended cell.

Returns

A new combo box control that is bound to the column's SelectedItemBinding, SelectedValueBinding, and TextBinding values.

Applies to