TreeList.LayoutUpdated Event

Fires after a Tree List’s layout has been changed.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.1.dll


public event EventHandler LayoutUpdated

Event Data

The LayoutUpdated event's data class is EventArgs.


When changing the column width, node height, column headers position or performing other actions that affect the size and position of the Tree List’s elements, the Tree List’s layout changes. As a result the LayoutUpdated event is raised. This event is also raised by the TreeList.LayoutChanged method which forces the Tree List to recalculate all its graphical information.

Note the LayoutUpdated event fires each time the Tree List’s layout is restored as a result of a TreeList.RestoreLayoutFromRegistry, TreeList.RestoreLayoutFromStream or TreeList.RestoreLayoutFromXml method call.

Handle this event to perform actions in response to layout modifications. This can be useful for instance, when it needs to be determined if the Tree List’s layout has been changed by an end-user. If it was changed, it can be saved to an XML file when the application is closed.

See Also