True DataControl 8.0 Reference > True DataControl Control > TData Control Properties > RefreshOnSrcChange Property |
RefreshOnSrcChange Property
Determines whether SourceRecordset changes trigger refresh.
TData.RefreshOnSrcChange = boolean
Read/Write at run time and design time. Property applies to TData control and TDataLite control.
This property is True by default. Setting it to False disables automatic refresh of the TData control on changes to its SourceRecordset as a whole. If you call TData.SourceRecordset.Requery in code, or SourceRecordset changes in other ways (for example, if it is a detail recordset in master-detail relationship in VB DataEnvironment, and its master record changes), then TData automatically refreshes itself if RefreshOnSrcChange = False. Set this property to False if this is undesirable, for example, when you make multiple changes to the SourceRecordset and want to refresh TData only once, when all changes are completed.
Note: At design time, this property is not available in property pages and must be set in the Visual Basic Properties window.
See Also