Back to Devexpress

LookUpEditBase.AllowCollectionView Property

wpf-devexpress-dot-xpf-dot-editors-dot-lookupeditbase-a5934666.md

latest1.9 KB
Original Source

LookUpEditBase.AllowCollectionView Property

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

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool AllowCollectionView { get; set; }
vb
Public Property AllowCollectionView As Boolean

Property Value

TypeDescription
Boolean

true to allow processing collection views; otherwise, false.

|

Remarks

The LookUpEditBase includes support for ICollectionViews – allowing you to manipulate the current record, and define rules for filtering, sorting and grouping.

If the AllowCollectionView property is set to false and an ICollectionView is used as a data source, the LookUpEditBase transforms the ICollectionView to a plain list, internally. In this instance, rules defined for grouping using GroupDescriptions in the ICollectionView are ignored.

Note

If there are multiple data controls bound to the same ICollectionView, leave the LookupEdit’s AllowCollectionView property set to false because grouping applied within an embedded grid affect the ICollectionView, which in turn, affects all the bound controls.

See Also

LookUpEditBase Class

LookUpEditBase Members

DevExpress.Xpf.Editors Namespace