property G2Host.HostDirty as Boolean
You can use the HostDirty property to determine whether the current host has been modified since it was last saved.

TypeDescription
Boolean A Boolean expression that specifies whether the current host has been modified since it was last saved.
By default, the HostDirty property is False. Once a change occurs, the HostDirty property is set on True. Generally, any UI interaction of the control may produce a change, and if the change occurs the HostDirty property on True. For instance, the user resizes one or more task bars, a change occurs, and so the HostDirty property is set on True. The Save method saves the control's data, while the HostDirty property is True. If no change occurs since last save, nothing will be saved. The Save method may not be allowed based on the data-source provided. Before calling programmatically the Save method or performing changes in the control ( like changing a property of a task bar ) you should call the HostDirty property on True. The Reload method reloads the control's data for original sources. The Refresh method refreshes the control including the inner host.

Once the HostDirty property is set, the Save will be performed if:

Once the Save method is performed, the HostDirty property is set on False. 

The Error event notifies your application once any error occurs. 

For instance, the following error:

0 The data-source provides no support for AddNew method[...]
0 The data-source provides no support for Delete method[...]
0 The data-source provides no support for Update method[...]

Indicates that no AddNew, Delete or Update is allowed, and so no Save will be performed.