Skip to main content
All docs
V24.2

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

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