Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.LayoutUpdated Event

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

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public event EventHandler LayoutUpdated

#Event Data

The LayoutUpdated event's data class is EventArgs.

#Remarks

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