The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XafApplication.DetailViewCreating Event

Occurs when creating a Detail View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public event EventHandler<DetailViewCreatingEventArgs> DetailViewCreating
Public Event DetailViewCreating As EventHandler(Of DetailViewCreatingEventArgs)
public event EventHandler<DetailViewCreatingEventArgs> DetailViewCreating
Public Event DetailViewCreating As EventHandler(Of DetailViewCreatingEventArgs)
public event EventHandler<DetailViewCreatingEventArgs> DetailViewCreating
Public Event DetailViewCreating As EventHandler(Of DetailViewCreatingEventArgs)

Event Data

The DetailViewCreating event handler receives an argument of the DetailViewCreatingEventArgs type. The following properties provide information specific to this event.

Property Description
EnableDelayedObjectLoading Specifies whether or not delayed object loading is enabled for the particular Detail View created using the ListViewProcessCurrentObjectController.
IsRoot Indicates whether a root View must be created.
(Inherited from ViewCreatingEventArgs)
Obj Returns the object that represents a current object for the Detail View to be the created.
ObjectSpace Returns the Object Space to be used when creating a new View.
(Inherited from ViewCreatingEventArgs)
View Specifies the Detail View which is created in the XafApplication.DetailViewCreating event.
ViewID Returns the ID of the created View.
(Inherited from ViewCreatingEventArgs)

Remarks

Handle this event to provide a custom Detail View instead of a default one. Use the handler's ViewCreatingEventArgs.ViewID parameter to get information on the created Detail View. To do this use the application's XafApplication.FindModelView method passing the View ID as a parameter. To specify the Detail View's current object use the handler's DetailViewCreatingEventArgs.Obj parameter. Create the Detail View in the Object Space passed as the handler's ViewCreatingEventArgs.ObjectSpace parameter.

See Also