共用方式為


DataGrid.AddingNewItem 事件

定義

在新項目加入至 DataGrid 之前發生。

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

事件類型

適用於