Xceed DataGrid for WPF v7.2 Documentation
OnItemAdding Method (ContentElementCollection<T>)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > ContentElementCollection<T> Class : OnItemAdding Method
Invoked before an item is added.
Syntax
'Declaration
 
Protected Overridable Sub OnItemAdding( _

   ByVal index As Integer, _

   ByVal item As T _

) 
'Usage
 
Dim instance As ContentElementCollection(Of T)

Dim index As Integer

Dim item As T

 

instance.OnItemAdding(index, item)
protected virtual void OnItemAdding( 

   int index,

   T item

)

Parameters

index
item
Requirements

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ContentElementCollection<T> Class
ContentElementCollection<T> Members