TreeList.CanShowEditor Property
Gets a value indicating whether the current cell’s editor can be invoked.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if the current cell’s editor can be invoked; otherwise false. |
Remarks
Cell values are edited by means of editors. Editors available for editing cell values are stored within the repository, which can be accessed via the Tree List’s EditorContainer.RepositoryItems property. The repository allows you to add, delete and customize individual editors within it.
You can assign editors to columns via the TreeListColumn.ColumnEdit property. In such a case, each column cell will use the specified editor. On the other hand, you can specify an editor for each individual cell by handling the TreeList.CustomNodeCellEdit event.
By default you can modify each cell value within the TreeList control. The following ways are available to prohibit cell value modification:
- If the TreeListOptionsBehavior.Editable option is disabled, end-users cannot edit cell values within the TreeList control.
- If the TreeList.ShowingEditor event handler sets the Cancel property of its parameter to true, the current cell’s editor is not displayed.
- If the TreeListColumn.ReadOnly option of a column is enabled, this column’s cell values cannot be modified.
Use the CanShowEditor property to get a value indicating whether at least one of the above mentioned conditions is satisfied.