Skip to main content

TreeList.CloseEditor() Method

Hides the active editor, saving changes that were made.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v25.1.dll

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

Declaration

public virtual void CloseEditor()

Remarks

Cell values are edited by editors from the DevExpress Editors Library or their descendants. Unlike the TreeList.HideEditor method, which simply closes the active editor, the CloseEditor method also saves the changes made to the edited cell’s content.

The CloseEditor method is also called automatically when an end-user accepts the edited value.

Tip

The following in-place editors can post their value to the bound data source immediately after the value changes:

  • CheckEdit
  • ToggleSwitch
  • RadioGroup
  • TrackBarControl
  • RatingControl
  • PopupBaseEdit descendants

Use the editor’s InplaceModeImmediatePostChanges property to control this behavior. The WindowsFormsSettings.InplaceEditorUpdateMode property allows you to control update behavior globally.

See Also