Version

Update() Method

Updates the data source with any modified information from the grid.
Syntax
'Declaration
 
Public Overridable Function Update() As Boolean
public virtual bool Update()
Remarks

The Update method updates any modified information in the grid, sending it to the data provider. When the update is complete, any rows that were marked as having modified data will have that mark cleared. The DataChanged property will be set to False.

Normally, the grid handles the updating of data automatically, so there will be few situations in which you will need to invoke this method. The major exception is when you have set the UpdateMode property to 'OnUpdate'. When using that setting, the grid will not send any data to the data provider until you invoke the Update method. You must use the method to manually update the data provider whenever data has been changed and you are ready to commit the changes.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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