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

TreeListView.RestoreFocusOnExpand Property

Gets or sets whether focus is restored on a child node after expanding its parent node. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public bool RestoreFocusOnExpand { get; set; }

#Property Value

Type Description
Boolean

true, to restore focus; otherwise, false.

#Remarks

If the RestoreFocusOnExpand property is set to true and a node whose child node is focused is collapsed, a subsequent expansion returns focus to the child node. Otherwise, focus on the parent node is preserved.

See Also