The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v18.2.dll

Declaration

public object Control { get; }
Public ReadOnly Property Control As Object

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).

See Also