TreeList.ShowEditor() Method
Switches the TreeList control to edit mode.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v22.2.dll
NuGet Package: DevExpress.Win.TreeList
Declaration
Remarks
Use the ShowEditor method to activate the current cell’s editor. An end-user can do the same by clicking a cell or pressing the ENTER or SPACE key when the cell is focused. The ShowEditor method can be useful, for instance, if you want to switch the TreeList control to edit mode in response to other user actions.
A cell’s editor cannot be activated in the following cases:
- The TreeListOptionsBehavior.Editable option is disabled.
- The current column’s TreeListOptionsColumn.ReadOnly option is enabled. This option is accessible via the column’s TreeListColumn.OptionsColumn property.
- The TreeList.ShowingEditor event handler sets its Cancel parameter to true.
Use the TreeList.CanShowEditor property to determine whether the current cell’s editor can be activated. This property checks all conditions listed above, in order to return its value.