.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ListEditor.ControlsCreated Event

Occurs after a ListEditor's control is created.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v19.2.dll


public event EventHandler ControlsCreated
Public Event ControlsCreated As EventHandler

Event Data

The ControlsCreated event handler receives an argument of the EventArgs type.


Handle the ControlsCreated event to modify a List Editor's control after it is created in a List View. For example, the code below shows how to access GridView and change the FocusedCell.BackColor* property to orange when the GridListEditor is used to represent data. See the (xref:113189) topic for more details about available ListEditor classes.

public class ListEditorController : ViewController<ListView> {
    private GridListEditor listEditor = null;
    private void listEditor_ControlsCreated(object sender, EventArgs e) {
        ((GridListEditor)sender).GridView.Appearance.FocusedCell.BackColor = Color.Orange;
    protected override void OnActivated() {
        listEditor = View.Editor as GridListEditor;
        if (listEditor != null) {
            listEditor.ControlsCreated += listEditor_ControlsCreated;
    protected override void OnDeactivated() {
        if (listEditor != null) {
            listEditor.ControlsCreated -= listEditor_ControlsCreated;

See Also