Xceed DataGrid for WPF v7.2 Documentation
DataGridItemCancelEventArgs Constructor


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridItemCancelEventArgs Class : DataGridItemCancelEventArgs Constructor
The DataGridCollectionView to which the item will potentially be added or removed.
The item to add to or removed from the collectionView.
true to cancel the addition or removal of the item; false to let the process continue.

Initializes a new instance of the DataGridtemCancelEventArgs class specifying the item, the collection view to which it is to be added or 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 cancel As Boolean _
)
'Usage
 
Dim collectionView As DataGridCollectionViewBase
Dim item As Object
Dim cancel As Boolean
 
Dim instance As New DataGridItemCancelEventArgs(collectionView, item, cancel)
public DataGridItemCancelEventArgs( 
   DataGridCollectionViewBase collectionView,
   object item,
   bool cancel
)

Parameters

collectionView
The DataGridCollectionView to which the item will potentially be added or removed.
item
The item to add to or removed from the collectionView.
cancel
true to cancel the addition or removal of the item; false to let the process continue.
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

DataGridItemCancelEventArgs Class
DataGridItemCancelEventArgs Members