Xceed Toolkit Plus for WPF v4.6 Documentation
EndCommit Method


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > AsyncCommitInfo Class : EndCommit Method
Syntax
'Declaration
 
Public Sub EndCommit() 
'Usage
 
Dim instance As AsyncCommitInfo
 
instance.EndCommit()
public void EndCommit()
Remarks

The EndCommit method of the AsyncCommitInfo instance received in the event arguments of the CommitItems event must be called when the synchronous or asynchronous update operation is completed. Until all pending commit operations are completed, the collection view will prevent the QueryItems events from being raised; therefore, it is essential that the EndCommit method be called in order to continue fetching new items once edited items have been committed. It is recommended to call the CommitAll method before the grid is unloaded so that any pending changes can be committed to the underlying data source.

The EndCommit method is considered thread-safe and can therefore be called from another thread in order to leave the main UI thread responsive when committing modified items.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AsyncCommitInfo Class
AsyncCommitInfo Members