DataGridComboBoxColumn.GenerateEditingElement(DataGridCell, Object) 方法

定義

取得下拉式方塊控制項,這個控制項繫結至資料行的 SelectedItemBindingSelectedValueBindingTextBinding 值。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, System::Object ^ dataItem);
protected override System.Windows.FrameworkElement GenerateEditingElement (System.Windows.Controls.DataGridCell cell, object dataItem);
override this.GenerateEditingElement : System.Windows.Controls.DataGridCell * obj -> System.Windows.FrameworkElement
Protected Overrides Function GenerateEditingElement (cell As DataGridCell, dataItem As Object) As FrameworkElement

參數

cell
DataGridCell

將會包含已產生之項目的儲存格。The cell that will contain the generated element.

dataItem
Object

由資料列 (內含所要的儲存格) 表示的資料項目。The data item represented by the row that contains the intended cell.

傳回

FrameworkElement

新的下拉式方塊控制項,繫結至資料行的 SelectedItemBindingSelectedValueBindingTextBinding 值。A new combo box control that is bound to the column's SelectedItemBinding, SelectedValueBinding, and TextBinding values.

適用於