.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

ListEditor.Control Property

Provides access to the control that is used by the current List Editor to represent a List View in a UI.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v21.2.dll

Declaration

public object Control { get; }

Property Value

Type Description
Object

An object which represents the current List Editor’s control.

Remarks

Use this property to customize the List Editor’s control. To do this, handle the Controller‘s ViewController.ViewControlsCreated event as shown below:

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Editors;
using DevExpress.ExpressApp.Win.Editors;
using DevExpress.XtraGrid;
// ...
public class MyViewController : ViewController<ListView> {
    protected override void OnViewControlsCreated() {
        base.OnViewControlsCreated();
        GridListEditor editor = (GridListEditor)View.Editor;
        GridControl grid = (GridControl)editor.Control;
    }
    // ...
}

If you need to execute a custom action after a List Editor’s control has been created, handle the ListEditor.ControlsCreated event.

When deriving from the ListEditor class, a List Editor’s control customization should be performed in the CreateControlsCore method after the control is created (see ListEditor).

The following code snippets (auto-collected from DevExpress Examples) contain references to the Control 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