Skip to main content

VGridControlBase.ActiveEditor Property

Gets a control’s active editor.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.1.dll

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

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.

See Also