Back to Devexpress

TreeList.EndCurrentEdit(Boolean) Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-dot-endcurrentedit-x28-system-dot-boolean-x29.md

latest2.1 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
public void EndCurrentEdit(
    bool updateSortingAndFiltering
)
vb
Public Sub EndCurrentEdit(
    updateSortingAndFiltering As Boolean
)

Parameters

NameTypeDescription
updateSortingAndFilteringBoolean

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

CancelCurrentEdit()

CloseEditor()

PostEditor()

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace