DataGridTextColumn.GenerateEditingElement(DataGridCell, Object) Méthode

Définition

Obtient un contrôle TextBox lié à la valeur de propriété Binding de la colonne.

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

Paramètres

cell
DataGridCell

Cellule qui contiendra l'élément généré.

dataItem
Object

Élément de données représenté par la ligne qui contient la cellule voulue.

Retours

Nouveau contrôle de zone de texte qui est lié à la valeur de propriété Binding de la colonne.

S’applique à