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+

ListEditor.NewObjectCreated Event

Occurs after a new object has been created in a List Editor.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public event EventHandler NewObjectCreated
Public Event NewObjectCreated As EventHandler
public event EventHandler NewObjectCreated
Public Event NewObjectCreated As EventHandler
public event EventHandler NewObjectCreated
Public Event NewObjectCreated As EventHandler

Event Data

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

Remarks

This event occurs only in those List Editors whose controls support creation of new objects and supply the required event notification. For instance, the built-in GridListEditor supports this event because its XtraGrid control can display the new item row.

When deriving from the ListEditor class, raise this event after a new object is created in a List Editor's control. In addition, the ListEditor.NewObjectAdding and ListEditor.NewObjectCanceled events should be raised where appropriate. In this instance, the NewObjectViewController will correctly create and manage a business object of the required type.

See Also