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.v24.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
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).