Xceed DataGrid for WPF v7.2 Documentation
DataGridRemovingItemEventArgs Constructor


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridRemovingItemEventArgs Class : DataGridRemovingItemEventArgs Constructor
The DataGridCollectionView from which the item is to be removed.
The item about to be removed.
The zero-based index at which the item is to be removed.
true if the process is to be canceled; false otherwise.
Initializes a new instance of the DataGridRemovingItemEventArgs class specifying the item, the collection view from which it is to be removed, and a value indicating whether the process is to be canceled.
Syntax
'Declaration
 
Public Function New( _
   ByVal collectionView As DataGridCollectionViewBase, _
   ByVal item As Object, _
   ByVal index As Integer, _
   ByVal cancel As Boolean _
)
'Usage
 
Dim collectionView As DataGridCollectionViewBase
Dim item As Object
Dim index As Integer
Dim cancel As Boolean
 
Dim instance As New DataGridRemovingItemEventArgs(collectionView, item, index, cancel)
public DataGridRemovingItemEventArgs( 
   DataGridCollectionViewBase collectionView,
   object item,
   int index,
   bool cancel
)

Parameters

collectionView
The DataGridCollectionView from which the item is to be removed.
item
The item about to be removed.
index
The zero-based index at which the item is to be removed.
cancel
true if the process is to be canceled; false otherwise.
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

DataGridRemovingItemEventArgs Class
DataGridRemovingItemEventArgs Members