property Items.HasCellEditor ([Item as Variant], [ColIndex as Variant]) as Boolean
Specifies whether a cell has a built-in editor.

TypeDescription
Item as Variant A long expression that indicates the item's handle.
ColIndex as Variant A long expression that indicates the cell's handle or the column's index, a string expression that indicates the column's caption or the column's key.
Boolean A boolean expression that indicates whether the cell has a built-in editor created using the CellEditor method.
Use the HasCellEditor property to check whether the cell has an individual editor being added using the CellEditor method before. Use the HasCellEditor property to find if a cell has a particular editor. The HasCellEditor property gets true only if the cell has its own editor assigned, it never gets true, if the cell's column has an editor. Use the CellEditor method to assign different editors in the same column. Use the Editor property to assign the same editor for all cells in the column.

The following VB sample shows the drop down portion of the control when a cell is focused:

Private Sub Grid1_FocusChanged()
    With Grid1
        Dim i As Long
        i = .FocusColumnIndex
        With Grid1.Items
            If (.CellEditorVisible(.FocusItem, i)) Then
                Dim e As EXGRIDLibCtl.Editor
                Set e = Grid1.Columns(i).Editor
                If .HasCellEditor(.FocusItem, i) Then
                    Set e = .CellEditor(.FocusItem, i)
                End If
                If Not e Is Nothing Then
                    e.DropDown
                End If
            End If
        End With
    End With
End Sub

The following VB sample assigns a date type editor to the focused cell ( the sample checks first if the cell doesn't have already an editor ):

With Grid1.Items
    Dim h As EXGRIDLibCtl.HITEM
    h = .FocusItem
    If Not .HasCellEditor(h, Grid1.FocusColumnIndex) Then
        With .CellEditor(h, Grid1.FocusColumnIndex)
            .EditType = DateType
        End With
    End If
End With

The following C++ sample assigns a date type editor to the focused cell ( the sample checks first if the cell doesn't have already an editor ):

#include "Items.h"
#include "Editor.h"
CItems items = m_grid.GetItems();
COleVariant vtItem( items.GetFocusItem() ), vtColumn( long(m_grid.GetFocusColumnIndex() ) );
if ( !items.GetHasCellEditor( vtItem, vtColumn ) )
{
	CEditor editor = items.GetCellEditor( vtItem, vtColumn );
	editor.SetEditType( 7 /*DateType*/ );
}

The following VB.NET sample assigns a date type editor to the focused cell ( the sample checks first if the cell doesn't have already an editor ):

With AxGrid1.Items
    Dim hItem As Integer = .FocusItem
    If Not .HasCellEditor(hItem, AxGrid1.FocusColumnIndex) Then
        With .CellEditor(hItem, AxGrid1.FocusColumnIndex)
            .EditType = EXGRIDLib.EditTypeEnum.DateType
        End With
    End If
End With

The following C# sample assigns a date type editor to the focused cell ( the sample checks first if the cell doesn't have already an editor ):

EXGRIDLib.Items items = axGrid1.Items;
int hItem = items.FocusItem;
if (hItem != null)
	if (!items.get_HasCellEditor(hItem, axGrid1.FocusColumnIndex))
	{
		EXGRIDLib.Editor editor = items.get_CellEditor(hItem, axGrid1.FocusColumnIndex);
		editor.EditType = EXGRIDLib.EditTypeEnum.DateType;
	}

The following VFP sample assigns a date type editor to the focused cell ( the sample checks first if the cell doesn't have already an editor ):

with thisform.Grid1.Items
	.DefaultItem = .FocusItem
	if ( !.HasCellEditor(0, thisform.Grid1.FocusColumnIndex ) )
		with .CellEditor( 0, thisform.Grid1.FocusColumnIndex )
			.EditType = 7 && DateType
		endwith
	endif
endwith