ShowVertScrollBar Property

Gets or sets a value which determines whether a vertical scroll bar is displayed in the grid control.

object.ShowVertScrollBar = [value]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and value is a value or constant as described in Settings.

Client support

   Newlook Smartclient only.

Use

By default, host-generated datagrid controls will always display a vertical scroll bar. ADO/DDM bound and OA-enabled grids will display a vertical scrollbar if the content is too big to be displayed in the available grid area. However, it is possible to overwrite this default behavior to always or never display scroll bars.

It is possible to turn off vertical scrollbars in host-generated grids globally by enabling the Automatically hide vertical scrollbar option in Subfile Rules. This option can be overridden for individual grids by setting its ShowVertScrollBar property to ShowScrollNever.

The available values for this property are :

Constant

(Macro editor)

Constant

(Script Editor)

Value

Description

ShowScrollAuto

nlShowScrollAuto

0

(Default) Vertical scroll bar display is automatically determined by the data in the grid. If the recognition engine detects that the user is able to page to additional data then the vertical scroll bar will be automatically displayed.

ShowScrollAlways

nlShowScrollAlways

1

Always display the vertical scroll bar.

ShowScrollNever

nlShowScrollNever

2

Never display the vertical scroll bar.

See Also

ShowHorzScrollBar property | ShowColumns property | Subfile options

Applies To

DataGrid control


© 2004-2021 looksoftware. All rights reserved.