DataListHasChanges 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 list 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 return 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 dlList (a data list control).
// If the data list has changes, save them.
if(dlList.HasChanges)
daItems.Update(dsItems);
' Assume daItems is a data adapter, dsItems is a DataSet and
' dsItems is the data source for dlList (a data list control).
' If the data list has changes, save them.
If dlList.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.