ComponentOne List 8.0 for ActiveX
Application Mode

True DBList supports a cell-based unbound mode, or application mode, that does not rely upon either the Visual Basic Data control or the ComponentOne XArrayDB object. Instead, application mode fires events whenever the list needs to retrieve or update the value of an individual cell. Your application is in total control of the data; no intermediate objects are involved.

To use application mode, set the DataMode property of the list to 3 - Application at design time. In code, write handlers for the ClassicRead and UnboundGetRelativeBookmark events.

Application mode was modeled after the Fetch and Update events of ComponentOne's TrueGrid Pro (VBX) product. However, unlike TrueGrid Pro, which identifies rows with absolute row numbers, True DBList identifies rows with bookmarks. This subtle change provides uniformity across data access modes, and ensures that all of the list's bookmark-related properties, methods, and events (Bookmark, FirstRow, GetBookmark, FetchCellStyle, and others) work the same in application mode as in any other DataMode, either bound or unbound.

Application mode is only used for populating a control with data.  If you are using True DBList to update another data source, you must set the DataSource property to the name of a bound data control at design time.

See Also

 

 


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

Product Support Forum  |  Documentation Feedback