Click or drag to resize

DataBrowser.Use Method (Typed)

X#
Connect the data browser to a data server in a client-server relationship.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD Use(
	oServer AS DataServer
) AS LOGIC
Request Example View Source

Parameters

oServer
Type: DataServer
The data server to which this data browser should be connected. If the data browser is already connected to a server, it is disconnected first. If omitted, the data browser is disconnected from the data server.

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.

Implements

Use(DataServer)
Remarks
Tip Tip
If the browser is used as a browse view of a data window, there is no reason to use this method; the browser is automatically connected to the server of the window it belongs to.
The DataBrowser:Use() method connects browser columns with fields of the data server based on matching names. Any column that does not have an explicitly provided field specification and hyperlabel inherits the FieldSpec and HyperLabel objects from its data server field. If the data browser does not have any columns, the DataBrowser:Use() method automatically creates a layout with columns for all the fields in the server. DataBrowser:Use() also registers the data browser as a client of the server with the DataServer:RegisterClient() method.
See Also