DataGridCheckBoxColumn.GenerateEditingElement(DataGridCell, Object) Méthode

Définition

Obtient un contrôle CheckBox 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

FrameworkElement

Nouvelle case à cocher qui est liée à la valeur de propriété Binding de la colonne.

S’applique à