ComponentOne True DataControl 8.0
WillOpenData Event

 

WillOpenData Event

Occurs at startup and on every refresh, before the OpenData event.

Syntax

TData_WillOpenData ( )

Remarks

Arguments: None

The WillOpenData event fires before a TData control begins to populate its recordset, which occurs under the following circumstances:

·      At the start of program execution.

·      When the control is refreshed explicitly via the Refresh method with NoEvents argument set to False.

·      When the control is refreshed implicitly: as a result of asynchronous expression evaluation; repositioning the Master control to a different row; or a change in SourceRecordset.

The WillOpenData event occurs before OpenData. It gives the programmer an opportunity to change Fields and other collections. For more information, see Modifying True DataControl collections from code. Use the Fields property to access the Fields collection.

The WillOpenData event can also be used to set parameter values that cannot be specified at design time. See Parameters in expressions for more information.

 

 


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

Product Support Forum  |  Documentation Feedback