Back to Devexpress

View.ControlsCreated Event

expressappframework-devexpress-dot-expressapp-dot-view-44700c94.md

latest4.0 KB
Original Source

View.ControlsCreated Event

Occurs after controls for a View are created.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public event EventHandler ControlsCreated
vb
Public Event ControlsCreated As EventHandler

Event Data

The ControlsCreated event's data class is EventArgs.

Remarks

Handle the View.ControlsCreated event if you’ve manually set the DelayedViewItemsInitialization property to false.

Note

In most scenarios, handle the ControlCreated event instead. The View.ControlsCreated event may fire before the necessary controls are created for your View and the Control property may return null in the event handler. For more details, see DelayedViewItemsInitialization.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ControlsCreated event.

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.

xaf-win-gantt-control/CS/EF/GanttSolution/GanttSolution.Win/Controllers/RibbonCustomizationWindowController.cs#L17

csharp
base.OnActivated();
    View.ControlsCreated += View_ControlsCreated;
}

xaf-how-to-access-the-master-detailview-information-from-a-nested-listview-controller/CS/WinWebSolution.Module/Controllers/PhoneNumberNestedListViewController.cs#L23

csharp
base.OnActivated();
    View.ControlsCreated += new EventHandler(View_ControlsCreated);
}

xaf-how-to-access-the-master-detailview-information-from-a-nested-listview-controller/VB/WinWebSolution.Module/Controllers/PhoneNumberNestedListViewController.vb#L29

vb
MyBase.OnActivated()
    AddHandler View.ControlsCreated, New EventHandler(AddressOf Me.View_ControlsCreated)
End Sub

See Also

How to: Access the Grid Component in a List View

ViewControlsCreated

View Class

View Members

DevExpress.ExpressApp Namespace