Skip to main content
All docs
V24.2

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.EndCurrentEdit(Boolean) Method

Posts the focused node’s values to the data source and optionally re-sorts and re-filters the tree.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public void EndCurrentEdit(
    bool updateSortingAndFiltering
)

#Parameters

Name Type Description
updateSortingAndFiltering Boolean

true to re-sort and re-filter the tree; otherwise, false.

#Remarks

The TreeList automatically saves changes in the focused node to a data source and re-sorts and re-filters the tree when the node is about to lose focus. Call the EndCurrentEdit method to post changes in the focused node to the data source when needed without moving focus to another node. Set the updateSortingAndFiltering parameter to true to re-sort and re-filter the tree after saving changes.

To discard the changes made to the focused node’s values, call the TreeList.CancelCurrentEdit method.

See Also