Skip to main content
A newer version of this page is available. .

VGridControlBase.ActiveEditor Property

Gets a control’s active editor.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v19.1.dll

Declaration

[Browsable(false)]
public BaseEdit ActiveEditor { get; }

Property Value

Type Description
BaseEdit

A BaseEdit object that represents the currently active editor. null (Nothing in Visual Basic) if no cell is being edited at the moment.

Remarks

Cell values are edited by editors inherited from the BaseEdit class. Once an end-user starts to edit a cell value, the cell’s editor is created. When editing finishes, the cell editor is destroyed. Thus, there can be only one active editor instance at any time.

The ActiveEditor property can be used to change editor settings dynamically with respect to the cell they are bound to. This property is also useful if you need to perform specific actions (such as open the editor’s dropdown window, etc.) when end-users activate particular editors or when they perform specific actions during editing. Note that you will need to handle the VGridControlBase.ShownEditor event to respond to editor activation.

Note

The ActiveEditor property returns a BaseEdit object. This object is the base for all editors that can be used as in-place in a vertical grid. Thus, you may need to typecast to use editor-specific properties.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ActiveEditor property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also