Skip to main content

Migrating from Version 3.0

Support for data virtualization required the creation of a new collection view. Since this new virtualizing collection view (DataGridVirtualizingCollectionView) shares members with the non-virtualizing collection view (DataGridCollectionView), a new base class was created (DataGridCollectionViewBase) to expose the shared members (see Table 1). The same structure was required for the XAML representations of the collection views, resulting in the creation of the DataGridCollectionViewSourceBase class, which is the base class for the DataGridCollectionViewSource and DataGridVirtualizingCollectionViewSource classes (see Table 2).

Table 1: Members moved from the DataGridCollectionView class to the DataGridCollectionViewBase class

MethodsPropertiesEvents
AddNew methodAutoCreateDetailDescriptions propertyBeginningEdit event
CancelEdit methodAutoCreateItemProperties propertyCancelingEdit event
CancelNew methodAutoFilterMode propertyCancelingNewItem event
CommitEdit methodAutoFilterValues propertyCommittingNewItem event
CommitNew methodCanFilter propertyCreatingNewItem event
DeferRefresh methodCanSort propertyEditBegun event
EditItem methodCulture propertyEditCanceled event
GetDistinctValues methodCurrentAddItem propertyEditCommitted event
PassesFilter methodCurrentEditItem propertyInitializingNewItem event
Refresh methodDetailDescriptions propertyItemRemoved event
Remove methodDistinctValues propertyNewItemCanceled event
RemoveAt methodDistinctValuesConstraint propertyNewItemCommitted event
Filter propertyNewItemCreated event
IsEditingItem propertyRemovingItem event
ItemProperties property
ItemType property
NeedsRefresh property
ParentDetailDescription property
SortDescriptions property

Table 2: Members moved from the DataGridCollectionViewSource class to the DataGridCollectionViewSourceBase class

PropertiesEvents
AutoCreateItemProperties propertyBeginningEdit event
AutoFilterMode propertyCancelingEdit event
Culture propertyCancelingNewItem event
DefaultCalculateDisctinctValues propertyCommittingNewItem event
DetailDescriptions propertyCreatingNewItem event
DistinctValuesConstraint propertyEditBegun event
ItemProperties propertyEditCanceled event
ItemType propertyEditCommitted event
Source propertyInitializingNewItem event
ItemRemoved event
NewItemCanceled event
NewItemCommitted event
NewItemCreated event
RemovingItem event

Obsolete Members

As of version 3.1, the IsAddingItem property exposed by the DataGridCollectionView class was rendered obsolete and replaced with the IsAddingNew property on the DataGridCollectionViewBase class to support the eventual implementation of the IEditableCollectionView interface.