Compartir a través de


DataGrid.RowEditEnded Event

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

Occurs when a row edit has been committed or canceled.

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

Syntax

'Declaration
Public Event RowEditEnded As EventHandler(Of DataGridRowEditEndedEventArgs)
public event EventHandler<DataGridRowEditEndedEventArgs> RowEditEnded

Remarks

By default, you can edit items directly in the DataGrid. To guarantee that edits can be committed and canceled correctly, the objects in the DataGrid must implement the IEditableObject interface. Alternatively, you can set the IsReadOnly property to true to disable editing in the DataGrid.

#XAML Attribute Usage

<sdk:DataGrid RowEditEnded="eventHandler"/>

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.