Click or drag to resize

DataWindow.ViewAs Method (Typed)

X#
Specify the view mode of the data window, as browse view or form view.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD ViewAs(
	symViewType AS SYMBOL
) AS USUAL
Request Example View Source

Parameters

symViewType
Type: Symbol
Specifies which view mode is to be used. Use one of these symbols:
SymbolDescription
#BrowseView Several records are displayed at the same time, as rows in a spreadsheet-like table with each field corresponding to a column.
#FormView A single record is viewed at a time, with its fields displayed in individual controls.

Return Value

Type: Usual
Remarks
When a window is switched to a new view mode, a layout is automatically generated if one had not been defined previously. Because it takes an argument, DataWindow:ViewAs() is rarely connected directly with a push button or menu command; instead, the DataWindow:ViewForm() and DataWindow:ViewTable() methods are used.
See Also