Export (0) Print
Expand All

DataGridColumn.CancelCellEdit Method

When overridden in a derived class, causes the column cell being edited to revert to the unedited value.

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

protected virtual void CancelCellEdit(
	FrameworkElement editingElement,
	Object uneditedValue
)

Parameters

editingElement
Type: System.Windows.FrameworkElement
The element that the column displays for a cell in editing mode.
uneditedValue
Type: System.Object
The previous, unedited value in the cell being edited.

This method is called internally when a user gesture cancels the edit. Derived column types override this method to propagate the unedited value to the current cell's display control.

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.

Community Additions

ADD
Show:
© 2014 Microsoft