ComponentOne True DataControl 8.0
ApproxCount Property

 

ApproxCount Property

Sets/returns the approximate number of rows in recordset in user events mode.

Syntax

TData.ApproxCount = long

Remarks

Read/Write at run time.  Not available at design time. Property applies to TData control.

This property sets or returns the approximate number of rows in the TData control’s Recordset.

The ApproxCount property is used in user events mode (DataMode = 2 – UserEvents) in conjunction with the ApproximatePosition argument of the UserReadData event. It is typically necessary for some bound controls to calibrate their vertical scroll bar. If this property is not set, the approximate count and position functionality is disabled. As some data bound controls may depend on this functionality, it is strongly recommended that you set this property.

Note: Setting the ApproxCount property in data modes other than user events mode has no effect. However, getting the ApproxCount property will query the underlying data source and return the row count.

See Also

TData Control

 

 


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

Product Support Forum  |  Documentation Feedback