Szerkesztés

Megosztás a következőn keresztül:


DataGridTextColumn.GenerateEditingElement(DataGridCell, Object) Method

Definition

Gets a TextBox control that is bound to the column's Binding property value.

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

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

A new text box control that is bound to the column's Binding property value.

Applies to