Skip to main content
A newer version of this page is available. .

PropertyGridControl.SelectedObjects Property

Gets or sets the collection of objects whose properties are currently displayed within the property grid. This is a dependency property.

Namespace: DevExpress.Xpf.PropertyGrid

Assembly: DevExpress.Xpf.PropertyGrid.v19.2.dll

Declaration

public IEnumerable SelectedObjects { get; set; }

Property Value

Type Description
IEnumerable

The collection of objects that represents the data source from which the grid retrieves its data.

Remarks

The SelectedObjects property allows browsing and editing properties of multiple objects. A property whose value differs between objects has a blank value in the property grid. Editing a property via the property grid changes it for all objects within the collection simultaneously.

To bind the Property Grid to a single object, use the PropertyGridControl.SelectedObject property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SelectedObjects property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also