Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataGridColumn.GenerateEditingElement Method

When overridden in a derived class, gets an editing element that is bound to the column's Binding property value.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

protected abstract FrameworkElement GenerateEditingElement(
	DataGridCell cell,
	Object dataItem
)

Parameters

cell
Type: System.Windows.Controls.DataGridCell
The cell that will contain the generated element.
dataItem
Type: System.Object
The data item represented by the row that contains the intended cell.

Return Value

Type: System.Windows.FrameworkElement
A new editing element that is bound to the column's Binding property value.

This method is called internally when the DataGrid populates the contents of a cell in the column when the cell is in editing mode. When overridden in a derived class, this method creates and configures a new editing element, and binds the appropriate dependency property to the column's Binding property value.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft