Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
Silverlight 3
DataGrid Class
DataGrid Events
 PreparingCellForEdit Event
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Silverlight 3

Other versions are also available for the following:
.NET Framework Class Library for Silverlight
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)
Visual Basic (Declaration)
Public Event PreparingCellForEdit As EventHandler(Of DataGridPreparingCellForEditEventArgs)
Visual Basic (Usage)
Dim instance As DataGrid
Dim handler As EventHandler(Of DataGridPreparingCellForEditEventArgs)

AddHandler instance.PreparingCellForEdit, handler
C#
public event EventHandler<DataGridPreparingCellForEditEventArgs> PreparingCellForEdit
XAML Attribute Usage
<data:DataGrid PreparingCellForEdit="eventhandler"/>

XAML Values

data:

A prefix that is defined to map the XML namespace for the System.Windows.Controls.Data assembly and the System.Windows.Controls CLR namespace.

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.

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker