DataNavigatorHasChanges Property

This read-only property can be used to see if the data source has been modified

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public virtual bool HasChanges { get; }

Property Value

Boolean
The CommitChanges method is called first to commit any pending changes to the data source. The data navigator can detect changes only if the data source is a DataSet, DataView, or a DataTable. In those cases, it returns true if the data source has been modified or false if it has not. For all other data source types, it will always returns false. You may override this property in order to extend the types that it knows about and detect changes in them.

Example

C#
// Assume daItems is a data adapter, dsItems is a DataSet and
// dsItems is the data source for dnNav (a data navigator control).
// If the data navigator has changes, save them.
if(dnNav.HasChanges)
    daItems.Update(dsItems);

See Also