G2Host object
Tip The /COM object can be placed on a HTML page (with usage of the HTML object tag:  <object classid="clsid:...">)  using the class identifier: {DFE195F7-4F43-482A-A14B-0C97B032A5E1}. The object's program identifier is: "Exontrol.G2Host". The /COM object module is: "ExG2Host.dll"
The ExG2Host is an extension of the ExG2antt ( Exontrol's Grid-Gantt component ) with full database support ( ADO, DAO, XML). In other words, the ExG2Host loads and saves automatically the host's data (including the hierarchy) to one or more databases. You can map a data field from the data-source, to a property of one object in the host/gantt control, and the control automatically updates the field when it is required. In the same manner, you can automatically save the control's layout, so next time the control is running it automatically get displayed the same way as it was closed. By default, the ExG2Host component let you add/remove/edit items, child-items, tasks, links and so on without having to code anything. The ExG2Host component provides all features of the ExG2antt component, it can be used as isolated, so no need for registration of any of the DLLs. The G2Host object supports the following properties and methods:

NameDescription
AttachTemplateAttaches a script to the current object, including the events, from a string, file, a safe array of bytes.
AutoSaveSpecifies the time in ms to perform saving, once the user changes the host.
DataFieldAssociates a data field to a property of the object of the host.
DataMemberSpecifies the host's data member.
DataSourceSpecifies the host's data source.
DataTechnologySpecifies the host's data technology, like ADO or/and DAO.
ExecuteTemplateExecutes a template and returns the result.
HostSpecifies the reference to the host.
HostContextGets the host's context at the current cursor position.
HostDefDefines the default value for specified property.
HostDirtyYou can use the HostDirty property to determine whether the current host has been modified since it was last saved.
HostEventParamRetrieves or sets a value that indicates the current's event parameter.
HostInitTemplateSpecifies the template to init the host.
HostReadOnlyRetrieves or sets a value that indicates whether the host is readonly.
hWndRetrieves the control's window handle.
RefreshRefreshes the host.
ReloadReloads the entire host.
SaveSaves the host, if it was modified.
TemplateSpecifies the control's template.
TemplateDefDefines inside variables for the next Template/ExecuteTemplate call.
TemplatePutDefines inside variables for the next Template/ExecuteTemplate call.
VersionRetrieves the control's version.