True DataControl 8.0 Reference > True DataControl Control > TData Control Properties > MaxRecords Property |
MaxRecords Property
Maximum number of records to retrieve when opened.
TData.MaxRecords = long
Read/Write at run time and design time. Property applies to TData control.
This property indicates the maximum number of records to return to the SourceRecordset from a query when creating the SourceRecordset in data source mode (DataMode = 0 - DataSource). The default setting is zero, which means the provider returns all existing records.
This is a standard ADO property. It can be set at any time during the control’s lifetime, but it will take effect only if set at design time, in the WillOpenData event, or after the Refresh method is called.
Note: At design time, this property is not available in property pages and must be set in the Visual Basic Properties window.
See Also