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:
| | Name | Description | |
| | AttachTemplate | Attaches a script to the current object, including the events, from a string, file, a safe array of bytes. | |
| | AutoSave | Specifies the time in ms to perform saving, once the user changes the host. | |
| | DataField | Associates a data field to a property of the object of the host. | |
| | DataMember | Specifies the host's data member. | |
| | DataSource | Specifies the host's data source. | |
| | DataTechnology | Specifies the host's data technology, like ADO or/and DAO. | |
| | ExecuteTemplate | Executes a template and returns the result. | |
| | Host | Specifies the reference to the host. | |
| | HostContext | Gets the host's context at the current cursor position. | |
| | HostDef | Defines the default value for specified property. | |
| | HostDirty | You can use the HostDirty property to determine whether the current host has been modified since it was last saved. | |
| | HostEventParam | Retrieves or sets a value that indicates the current's event parameter. | |
| | HostInitTemplate | Specifies the template to init the host. | |
| | HostReadOnly | Retrieves or sets a value that indicates whether the host is readonly. | |
| | hWnd | Retrieves the control's window handle. | |
| | Refresh | Refreshes the host. | |
| | Reload | Reloads the entire host. | |
| | Save | Saves the host, if it was modified. | |
| | Template | Specifies the control's template. | |
| | TemplateDef | Defines inside variables for the next Template/ExecuteTemplate call. | |
| | TemplatePut | Defines inside variables for the next Template/ExecuteTemplate call. | |
| | Version | Retrieves the control's version. | |