.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPBaseCollection.BindingBehavior Property

Defines which operations a bound control can perform on a collection.

This enumeration has a FlagsAttribute that allows a bitwise combination of its member values.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll

Declaration

[DefaultValue(CollectionBindingBehavior.AllowNew | CollectionBindingBehavior.AllowRemove)]
public CollectionBindingBehavior BindingBehavior { get; set; }

Property Value

Type Description
CollectionBindingBehavior

The CollectionBindingBehavior which specifies which operations a bound control can perform on a collection.

Remarks

The XPBaseCollection class implements the IBindingList interface, so an XPCollection object can be bound to a visual control (for instance, the XtraGrid). The control will interact with the XPCollection via this interface. The BindingBehavior property determines which operations a bound control can perform on the collection (whether adding new and/or removing existing items is allowed for the bound control). Regardless of the BindingBehavior property’s value the collection’s contents can still be modified by calling the collection’s appropriate methods.

See Also