Edit

Share via


DataGridComboBoxColumn.GenerateEditingElement(DataGridCell, Object) Method

Definition

Gets a Windows.UI.Xaml.Controls.ComboBox control that is bound to the column's ItemsSource collection.

protected override Windows.UI.Xaml.FrameworkElement GenerateEditingElement (Microsoft.Toolkit.Uwp.UI.Controls.DataGridCell cell, object dataItem);
override this.GenerateEditingElement : Microsoft.Toolkit.Uwp.UI.Controls.DataGridCell * obj -> Windows.UI.Xaml.FrameworkElement
Protected Overrides Function GenerateEditingElement (cell As DataGridCell, dataItem As Object) As FrameworkElement

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

Windows.UI.Xaml.FrameworkElement

A new Windows.UI.Xaml.Controls.ComboBox control that is bound to the column's ItemsSource collection.

Applies to