Skip to main content
.NET Framework Class Library
DataGridAddingNewItem Event

Occurs before a new item is added to the DataGrid.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Syntax
Public Event AddingNewItem As [%$TOPIC/hh472761_en-us_VS_110_2_0_0_0_0%](Of [%$TOPIC/hh472761_en-us_VS_110_2_0_0_0_1%])
public event [%$TOPIC/hh472761_en-us_VS_110_2_0_1_0_0%]<[%$TOPIC/hh472761_en-us_VS_110_2_0_1_0_1%]> AddingNewItem
public:
 event [%$TOPIC/hh472761_en-us_VS_110_2_0_2_0_0%]<[%$TOPIC/hh472761_en-us_VS_110_2_0_2_0_1%]^>^ AddingNewItem {
	void add ([%$TOPIC/hh472761_en-us_VS_110_2_0_2_0_2%]<[%$TOPIC/hh472761_en-us_VS_110_2_0_2_0_3%]^>^ value);
	void remove ([%$TOPIC/hh472761_en-us_VS_110_2_0_2_0_4%]<[%$TOPIC/hh472761_en-us_VS_110_2_0_2_0_5%]^>^ value);
}
member AddingNewItem : IEvent<[%$TOPIC/hh472761_en-us_VS_110_2_0_3_0_0%]<[%$TOPIC/hh472761_en-us_VS_110_2_0_3_0_1%]>,
    [%$TOPIC/hh472761_en-us_VS_110_2_0_3_0_2%]>
JScript does not support events.
<object AddingNewItem="[%$TOPIC/hh472761_en-us_VS_110_2_0_5_0_0%]<[%$TOPIC/hh472761_en-us_VS_110_2_0_5_0_1%]>" .../>
Version Information

.NET Framework

Supported in: 4.6, 4.5