Data Access Modes > Data Source Mode > Modifying SourceRecordset from Code |
You may find it useful to modify the SourceRecordset from code. For example, you can allow the end-user to change its Sort property, to implement different sorts in your TData control.
If the SourceRecordset is changed as a whole (for example, when its Sort or Filter properties are changed, or its Requery method is called), True DataControl “feels” the change and refreshes accordingly, refetching all data to reflect the change.
For another example of True DataControl's “sensitivity” to SourceRecordset changes, see Using True DataControl with master-detail (hierarchical) ADO recordsets.