Skip to main content
A newer version of this page is available. .

DataLayoutControl.AutoGeneratingItem Event

Allows you to customize a layout item when its auto generation has been completed.

Namespace: DevExpress.Xpf.LayoutControl

Assembly: DevExpress.Xpf.LayoutControl.v19.2.dll

Declaration

public event EventHandler<DataLayoutControlAutoGeneratingItemEventArgs> AutoGeneratingItem

Event Data

The AutoGeneratingItem event's data class is DataLayoutControlAutoGeneratingItemEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
Item Gets or sets the item that has been generated.
PropertyName Gets the name of the property to which the generated layout item is bound.
PropertyType Gets the type of the bound property.

Remarks

Set the Cancel property to true to undo the automatic layout item generation.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AutoGeneratingItem 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.

See Also