DataNavigatorHasChanges Property
This read-only property can be used to see if the data source has been modified
Namespace: EWSoftware.ListControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public virtual bool HasChanges { get; }
Public Overridable ReadOnly Property HasChanges As Boolean
Get
public:
virtual property bool HasChanges {
bool get ();
}
abstract HasChanges : bool with get
override HasChanges : bool with get
Property Value
BooleanThe
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.
// 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);
' 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 Then
daItems.Update(dsItems)
End If
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.