event BeforeCellEdit (Group as Group, Item as HITEM, ColIndex as Long, ByRef Value as Variant, ByRef Cancel as Variant)
Occurs just before the user enters edit mode by clicking in a cell.

TypeDescription
Group as Group A Group object where the change occurs. 
Item as HITEM A long expression that indicates the handle of the item being changed.
ColIndex as Long A long expression that specifies the index of the column where the change occurs, or the handle of the cell being edited if the Item parameter is 0.
Value as Variant (By Reference) A Variant expression that indicates the edit's caption. By default, the caption of the edit control is the cell's caption. The user can change the text that the edit control displays.
Cancel as Variant (By Reference) A boolean expression that indicates whether the control cancels the default operation.
The BeforeCellEdit event notifies your application that the user starts editing a cell. Use the Edit method to programmatically edits a cell. Use the AllowEdit property to enable edit feature in the group.  Use the BeforeCellEdit event to cancel editing cells or to change the edit's caption before it is displayed. Use the AfterCellEdit to change the cell's caption when the edit operation ends.

Syntax for BeforeCellEdit event, /NET version, on:

private void BeforeCellEdit(object sender,exontrol.EXPLORERTREELib.Group Group,int Item,int ColIndex,ref object Value,ref object Cancel)
{
}

Private Sub BeforeCellEdit(ByVal sender As System.Object,ByVal Group As exontrol.EXPLORERTREELib.Group,ByVal Item As Integer,ByVal ColIndex As Integer,ByRef Value As Object,ByRef Cancel As Object) Handles BeforeCellEdit
End Sub

Syntax for BeforeCellEdit event, /COM version, on:

private void BeforeCellEdit(object sender, AxEXPLORERTREELib._IExplorerTreeEvents_BeforeCellEditEvent e)
{
}

void OnBeforeCellEdit(LPDISPATCH Group,long Item,long ColIndex,VARIANT FAR* Value,VARIANT FAR* Cancel)
{
}

void __fastcall BeforeCellEdit(TObject *Sender,Explorertreelib_tlb::IGroup *Group,Explorertreelib_tlb::HITEM Item,long ColIndex,Variant * Value,Variant * Cancel)
{
}

procedure BeforeCellEdit(ASender: TObject; Group : IGroup;Item : HITEM;ColIndex : Integer;var Value : OleVariant;var Cancel : OleVariant);
begin
end;

procedure BeforeCellEdit(sender: System.Object; e: AxEXPLORERTREELib._IExplorerTreeEvents_BeforeCellEditEvent);
begin
end;

begin event BeforeCellEdit(oleobject Group,long Item,long ColIndex,any Value,any Cancel)
end event BeforeCellEdit

Private Sub BeforeCellEdit(ByVal sender As System.Object, ByVal e As AxEXPLORERTREELib._IExplorerTreeEvents_BeforeCellEditEvent) Handles BeforeCellEdit
End Sub

Private Sub BeforeCellEdit(ByVal Group As EXPLORERTREELibCtl.IGroup,ByVal Item As EXPLORERTREELibCtl.HITEM,ByVal ColIndex As Long,Value As Variant,Cancel As Variant)
End Sub

Private Sub BeforeCellEdit(ByVal Group As Object,ByVal Item As Long,ByVal ColIndex As Long,Value As Variant,Cancel As Variant)
End Sub

LPARAMETERS Group,Item,ColIndex,Value,Cancel

PROCEDURE OnBeforeCellEdit(oExplorerTree,Group,Item,ColIndex,Value,Cancel)
RETURN

Syntax for BeforeCellEdit event, /COM version (others), on:

<SCRIPT EVENT="BeforeCellEdit(Group,Item,ColIndex,Value,Cancel)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function BeforeCellEdit(Group,Item,ColIndex,Value,Cancel)
End Function
</SCRIPT>

Procedure OnComBeforeCellEdit Variant llGroup HITEM llItem Integer llColIndex Variant llValue Variant llCancel
	Forward Send OnComBeforeCellEdit llGroup llItem llColIndex llValue llCancel
End_Procedure

METHOD OCX_BeforeCellEdit(Group,Item,ColIndex,Value,Cancel) CLASS MainDialog
RETURN NIL

void onEvent_BeforeCellEdit(COM _Group,int _Item,int _ColIndex,COMVariant /*variant*/ _Value,COMVariant /*variant*/ _Cancel)
{
}

function BeforeCellEdit as v (Group as OLE::Exontrol.ExplorerTree.1::IGroup,Item as OLE::Exontrol.ExplorerTree.1::HITEM,ColIndex as N,Value as A,Cancel as A)
end function

function nativeObject_BeforeCellEdit(Group,Item,ColIndex,Value,Cancel)
return

The following sample cancels editing cells on the first column only for the first group:

Private Sub ExplorerTree1_BeforeCellEdit(ByVal Group As EXPLORERTREELibCtl.IGroup, ByVal Item As EXPLORERTREELibCtl.HITEM, ByVal ColIndex As Long, Value As Variant, Cancel As Variant)
    If (Group.Index = 0) Then
        Cancel = ColIndex = 0
    End If
End Sub