event AddGroupItem (Item as HITEM)
Occurs after a new Group Item has been inserted to Items collection.

TypeDescription
Item as HITEM A Long expression that indicates the handle of the grouping items being inserted. 
The AddGroupItem event is fired for each new item to be inserted in the Items collection during the grouping. The GroupItem method determines the index of the column that indicates the column being grouped. In other words, the CellCaption(Item,GroupItem(Item) ) gets the default caption to be displayed for the grouping item. The Ungroup method removes all grouping items. For instance, when a column gets grouped by, the control sorts by that column, collects the unique values being found, and add a new item for each value found, by adding the items of the same value as children. 

During the AddGroupItem event, you can use:

Of course, these are just a few of properties you may use, you can use any property related to the item/cell or bar and link.

The AddGroupItem event can be used in any of the followings:

Syntax for AddGroupItem event, /NET version, on:

private void AddGroupItem(object sender,int Item)
{
}

Private Sub AddGroupItem(ByVal sender As System.Object,ByVal Item As Integer) Handles AddGroupItem
End Sub

Syntax for AddGroupItem event, /COM version, on:

private void AddGroupItem(object sender, AxEXG2ANTTLib._IG2anttEvents_AddGroupItemEvent e)
{
}

void OnAddGroupItem(long Item)
{
}

void __fastcall AddGroupItem(TObject *Sender,Exg2anttlib_tlb::HITEM Item)
{
}

procedure AddGroupItem(ASender: TObject; Item : HITEM);
begin
end;

procedure AddGroupItem(sender: System.Object; e: AxEXG2ANTTLib._IG2anttEvents_AddGroupItemEvent);
begin
end;

begin event AddGroupItem(long Item)
end event AddGroupItem

Private Sub AddGroupItem(ByVal sender As System.Object, ByVal e As AxEXG2ANTTLib._IG2anttEvents_AddGroupItemEvent) Handles AddGroupItem
End Sub

Private Sub AddGroupItem(ByVal Item As EXG2ANTTLibCtl.HITEM)
End Sub

Private Sub AddGroupItem(ByVal Item As Long)
End Sub

LPARAMETERS Item

PROCEDURE OnAddGroupItem(oG2antt,Item)
RETURN

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

<SCRIPT EVENT="AddGroupItem(Item)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function AddGroupItem(Item)
End Function
</SCRIPT>

Procedure OnComAddGroupItem HITEM llItem
	Forward Send OnComAddGroupItem llItem
End_Procedure

METHOD OCX_AddGroupItem(Item) CLASS MainDialog
RETURN NIL

void onEvent_AddGroupItem(int _Item)
{
}

function AddGroupItem as v (Item as OLE::Exontrol.G2antt.1::HITEM)
end function

function nativeObject_AddGroupItem(Item)
return