Partager via


DataGrid.BeginningEdit Event

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Occurs before a cell or row enters editing mode.

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

Syntax

'Declaration
Public Event BeginningEdit As EventHandler(Of DataGridBeginningEditEventArgs)
public event EventHandler<DataGridBeginningEditEventArgs> BeginningEdit
<sdk:DataGrid BeginningEdit="eventhandler"/>

Remarks

This event lets you perform special processing before a cell or row enters editing mode. Additionally, this event provides information about the keyboard or mouse gesture that was used to enter editing mode, and gives you the option of canceling editing mode.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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