Skip to main content
.NET 8.0+

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

ListEditor.GetSelectedObjects() Method

Provides access to the collection of objects that are currently selected in the List Editor‘s control.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public abstract IList GetSelectedObjects()

#Returns

Type Description
IList

A list of the selected objects.

#Remarks

Use this method to access selected objects. To perform the required actions when the selection is changed, handle the ListEditor.SelectionChanged event.

When deriving from the ListEditor class, override this method to return a collection of the selected objects. If the List Editor’s control does not support selection, return an empty collection. In this instance, set the ListEditor.SelectionType property to SelectionType.None.

See Also