DataListView Class
|
|
Create a data list view as a faster, read-only, standalone control and an alternative to a data browser.
Inheritance Hierarchy
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
SyntaxThe DataListView type exposes the following members.
Constructors
Properties|
| Name | Description |
|---|
 | Owner |
The owner of this DataListView control.
(Overrides Owner.) |
 | Server |
The data server associated with the data list view.
(Overrides Server.) |
Top
Methods|
| Name | Description |
|---|
 | DeleteAll |
Delete all items in a data list view.
(Overrides DeleteAll.) |
 | Destroy |
Provide a method to de-instantiate a DataListView object.
(Overrides Destroy.) |
 | FIELDGET | |
 | Notify |
Provide an event handler that reflects events that have occurred in the server connected to this data list view.
|
 | Refresh |
Force the contents of the data list view to be updated from the data server.
|
 | Use |
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:
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 |
|---|
| 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