ComponentOne True DataControl 8.0
AllowEarlyOpen Property

 

AllowEarlyOpen Property

Can be set to False to work around limitations of some data bound controls.

Syntax

TData.AllowEarlyOpen = value

Remarks

Read/Write at design time. Read-only at run time. Property applies to TData control.

This property is False by default and should be set to True only for the purpose of making some bound controls work with TData that normally would not. For example, Microsoft Hierarchical FlexGrid will have problems with painting (highlighting current row) if AllowEarlyOpen is not set to True.

In Visual Basic, during form startup, before the form Load event is fired, control events are not yet ready to fire. TData relies on run time events for its functionality, events such as WillOpenData, OpenData and OpenDataComplete. Also, in DataMode = 2 – UserEvent, TData relies onevents for populating its recordset with data. Therefore, TData cannot function properly during the early phases of form startup. But most of data bound controls request data from their data source exactly at that stage, whenTData is not ready to provide the data.

To resolve this problem, TData returns empty recordset when it is requested before it is ready. Once the startup process is complete, TData notifies bound controls that it is now ready to provide data.

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