Click or drag to resize

DataListView Class

X#
Create a data list view as a faster, read-only, standalone control and an alternative to a data browser.
Inheritance Hierarchy
Object
  VObject
    Control
      TextControl
        ListView
          DataListView

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS DataListView INHERIT ListView
Request Example View Source

The DataListView type exposes the following members.

Constructors
  NameDescription
Public methodDataListView
Construct a data list view.
Top
Properties
  NameDescription
Public propertyOwner
The owner of this DataListView control.
(Overrides Owner.)
Public propertyServer
The data server associated with the data list view.
(Overrides Server.)
Top
Methods
  NameDescription
Public methodDeleteAll
Delete all items in a data list view.
(Overrides DeleteAll.)
Public methodDestroy
Provide a method to de-instantiate a DataListView object.
(Overrides Destroy.)
Public methodFIELDGET
Public methodNotify
Provide an event handler that reflects events that have occurred in the server connected to this data list view.
Public methodRefresh
Force the contents of the data list view to be updated from the data server.
Public methodUse
Associate a data server with the data list view.
Top
Remarks
A data list view is a "data-ware" list view control which serves as a fast, read-only alternative to a data browser. Together with the list view column control, a data list view can be used inside the Window Editor to "paint" the browse view portion of a data window. It can also be used as a standalone control. The DataListView control uses internally a virtual list view, which means that its speed is independent of the total number of records in your database. Additionally, the scrollbar size and position always represents the position in the database correctly. The DataListView control relies on the OrderKeyCount(), OrderKeyGoto(), and OrderKeyNo() methods of the associated server. If there is no active order, the DataListView control uses RecCount(), GoTo(), and RecNo() instead. Additionally, the DataListView control has some limitations, depending on the currently active RDD: SetFilter is supported for NTX and CDX drivers only. SetDeleted(TRUE) is not supported for all RDDs. If you want to hide all deleted records, you should use SetDeleted(FALSE) and specify a data server filter condition like:
X#
1SetFilter({|| !Deleted()}, "!Deleted()")
OrderScopes are supported for NTX and CDX drivers only. If you want to use a DataListView control as a replacement for a DataBrowser control, set the Browser Inherits From property in the Window Editor to DataListView. The generated code will then reference DataListView.
Tip Tip
Choosing a DataListView control as a replacement for a DataBrowser control has an additional advantage: your applications will not need the CATO3xxx.DLL support DLLs.
The DataListView control can also be used as a standalone control that can be placed on any window or dialog. In this case, you have to explicitly assign a data server to the DataListView:Server property.
See Also

Reference