DataGrid.CellEditEnding 事件

定義

在認可或取消儲存格編輯之前發生。Occurs before a cell edit is committed or canceled.

public:
 event EventHandler<System::Windows::Controls::DataGridCellEditEndingEventArgs ^> ^ CellEditEnding;
public event EventHandler<System.Windows.Controls.DataGridCellEditEndingEventArgs> CellEditEnding;
member this.CellEditEnding : EventHandler<System.Windows.Controls.DataGridCellEditEndingEventArgs> 
Public Custom Event CellEditEnding As EventHandler(Of DataGridCellEditEndingEventArgs) 
Public Event CellEditEnding As EventHandler(Of DataGridCellEditEndingEventArgs) 

事件類型

EventHandler<DataGridCellEditEndingEventArgs>

備註

您可以 Cancel e true 在事件處理常式中將引數的屬性設定為,以取消這個事件。You can cancel this event by setting the Cancel property of the e argument to true in the event handler. 如果取消,儲存格會維持在編輯模式中。If canceled, the cell remains in edit mode.

如果這個事件未取消,則 EditAction 會執行指定的來認可或取消編輯。If this event is not canceled, the specified EditAction will be performed to commit or cancel the edit.

適用於

另請參閱