DataGridComboBoxColumn.GenerateEditingElement(DataGridCell, Object) Metoda

Definicja

Pobiera kontrolkę pola kombi, która jest powiązana z wartościami , SelectedValueBindingi TextBinding kolumnySelectedItemBinding.

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

Parametry

cell
DataGridCell

Komórka, która będzie zawierać wygenerowany element.

dataItem
Object

Element danych reprezentowany przez wiersz zawierający docelową komórkę.

Zwraca

Nowa kontrolka pola kombi powiązana z wartościami , SelectedValueBindingi TextBinding kolumnySelectedItemBinding.

Dotyczy