ComponentOne True DataControl 8.0
ResyncAfterUpdate Property

 

ResyncAfterUpdate Property

Determines whether to call SourceRecordset.Resync immediately after SourceRecordset.Update.

Syntax

TData.ResyncAfterUpdate = boolean

Remarks

Read/Write at run time and design time. Property applies to TData control and TDataLite control.

This property is False by default. Set it to True if you want TData to call SourceRecordset.Resync(adAffectCurrent, adResyncAllValues) immediately after sending data to the database (calling SourceRecordset.Update).This is useful when saving data in the database can change some field values. For example, if you use an autoincrement field (AutoNumber in MS Access, newid() function in SQL Server) with TData.CursorLocation = adUseClient, you won't see the new value unless TData.ResyncAfterUpdate = True.

Note: At design time, this property is not available in property pages and must be set in the Visual Basic Properties window.

See Also

TData Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback