| Visual Basic (Declaration) | |
|---|---|
Public Event CommittingNewItem() As EventHandler(Of DataGridCommittingNewItemEventArgs) | |
| C# | |
|---|---|
public event EventHandler<DataGridCommittingNewItemEventArgs> CommittingNewItem() | |
Manually handling the insertion of new items requires that the CreatingNewItem, CommitingNewItem, and CancelingNewItem events must all be handled otherwise an InvalidOperationException will be thrown.
The new item should be added to the underlying data source in the CommitingNewItem event rather than the CreatingNewItem event.
Supported Frameworks: Microsoft .NET Framework version 3.5