DataWindow.ViewAs Method (Typed) | |
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
public virtual Usual ViewAs(
Symbol symViewType
)
Request Example
View SourceParameters
- symViewType
- Type: Symbol
Specifies which view mode is to be used. Use one of these symbols:
Symbol | Description |
---|
#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:
UsualRemarks
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