Skip to main content
.NET Framework 4.6.2+

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

IComplexListEditor Interface

In This Article

Declares members implemented by a List Editor to support receiving information on the application and Collection Source of the List View that uses the List Editor.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public interface IComplexListEditor

#Remarks

In certain scenarios, a List Editor may require access to the application or the Collection Source of the List View that uses the List Editor. To get this information, the List Editor can implement the IComplexListEditor interface. This interface exposes a single IComplexListEditor.Setup method that passes this information to the List Editor.

When implementing a custom List Editor, support this interface if the List Editor requires information on the application and Collection Source to function properly.

Here is an example of how to implement IComplexListEditor in a ListEditor descendant.

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Editors;
// ...
public class CustomListEditor : ListEditor, IComplexListEditor {
    private CollectionSourceBase collectionSource;
    private XafApplication application;
    #region IComplexListEditor Members
    public void Setup(CollectionSourceBase collectionSource, 
XafApplication application) {
        this.collectionSource = collectionSource;
        this.application = application;
    }
    #endregion
    // Example:
    protected override object CreateControlsCore() {
        IList objectsCollection = collectionSource.List;
        // ...
    }
}
See Also