Windows apps
Collapse the table of content
Expand the table of content
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.

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.


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

© 2016 Microsoft