Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GridControl.AllowCollectionView Property

Gets or sets whether to allow processing collection views. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public bool AllowCollectionView { get; set; }

#Property Value

Type Description
Boolean

true to allow processing collection views; otherwise, false.

#Remarks

The GridControl supports ICollectionView binding. To bind the GridControl to the ICollectionView, assign the source collection to the grid’s DataControlBase.ItemsSource property and enable the DataViewBase.IsSynchronizedWithCurrentItem option. The grid automatically synchronizes its grouping, sorting, current item, and can directly change the underlying collection.

When the GridControl is bound to a collection view, the grid functions in the Server Mode. To learn about the Server Mode limitations, refer to the following topic: Server Mode Limitations.

When working with ICollectionView sources, the GridControl delegates all data management operations (sorting, filtering, grouping) to ICollectionView, which imposes some limitations on the GridControl‘s features.

Set the AllowCollectionView property to false to let the GridControl perform all data management operations.

See Also