Skip to main content
.NET 8.0+

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