DataGrid.setScrollbars

Overview | Methods | Fields | This Package | All Packages

DataGrid.setScrollbars

Sets a value indicating which scroll bars are displayed.

Syntax

public void setScrollbars( int scroll )

Parameters

scroll

One of the constants defined by the Scrollbars class. The default value of the scrollbars property is Scrollbars.BOTH.

Exceptions

WFCInvalidArgumentException thrown if scroll is not a valid scroll bar setting.

Remarks

When the scrollbars property is set to either Scrollbars.VERTICAL, Scrollbars.HORIZONTAL, or Scrollbars.BOTH, the specified scroll bars are always displayed, even if all rows or columns are currently visible in the grid.

If the scrollbars property is set to Scrollbars.NONE, the keyboard can still be used to scroll the grid, provided the allowArrows, enterAction, and tabAction properties are set appropriately.

See Also   getScrollbars