0 out of 1 rated this helpful Rate this topic

DataGrid.PreparingCellForEdit Event

Occurs when a cell in a DataGridTemplateColumn enters editing mode.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)
public event EventHandler<DataGridPreparingCellForEditEventArgs> PreparingCellForEdit
<sdk:DataGrid PreparingCellForEdit="eventhandler"/>

You can handle this event to respond to a user who is attempting to edit a cell in a DataGridTemplateColumn. This event does not occur for cells in other column types. If the user attempts to edit a cell in other columns derived from DataGridColumn, the DataGrid control calls the column's PrepareCellForEdit method.

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.

Did you find this helpful?
(2000 characters remaining)
Community Content Add
Annotations FAQ