Back to Devexpress

XPBaseCollection.DisplayableProperties Property

xpo-devexpress-dot-xpo-dot-xpbasecollection-5edaa1ea.md

latest2.8 KB
Original Source

XPBaseCollection.DisplayableProperties Property

Gets or sets the displayable properties list for a bound control.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public string DisplayableProperties { get; set; }
vb
Public Property DisplayableProperties As String

Property Value

TypeDescription
String

The displayable properties list, containing property paths separated by semicolons. For example, “FirstName;LastName;Company.Name;Address.City”.

|

Remarks

The XPBaseCollection class implements the IBindingList and ITypedList interfaces, so a data-aware control such as the XtraGrid can be bound to a collection and display and edit its data (object properties would be represented by columns in the grid). The DisplayableProperties property provides a list of the object properties that are available for binding at design time. Note that it’s still possible to bind a control to properties that are not included in the DisplayableProperties list. In this instance, the required property name should be specified (typed) for a control manually in the Property Grid (at design time) or in code.

If an object property represents a persistent object that has nested properties, you can include these nested properties in the DisplayableProperties list. These should be specified in the form: “PropertyName.NestedPropertyName” (for instance, “Address.City”). The number of nested levels is not limited.

When an empty string is assigned, the DisplayableProperties property is actually set to a string that contains all the public properties of the current object.

See Property Descriptors for further details.

See Also

Property Descriptors

How to: Bind an XPCollection to the Grid

How to: Bind an XPCollection to a LookUp

XPBaseCollection Class

XPBaseCollection Members

DevExpress.Xpo Namespace