Skip to content

ScrollModeH Property

Description

Gets or sets the scroll mode for horizontal scrolling in the Grid control.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property ScrollModeH() As [XTPGridScrollMode](XtremeGridControl~Enumerations~XTPGridScrollMode_EN.md)

Return Type

A value from the XTPGridScrollMode enumeration that specifies the current scroll mode for horizontal scrolling in the grid. Default is xtpGridScrollModeSmooth.

Remarks

The Grid control can be scrolled in "smooth" or "block" mode. Smooth scrolling, as the name implies, will scroll the contents smoothly where the content will not "jump". Block scrolling will cause the grid to "jump" to the top/left of the next row (scrolling vertically) or column (scrolling horizontally).

The grid allows the scroll mode to be set independently for vertical and horizontal scrolling. When setting the scroll mode using ScrollMode, it sets BOTH the horizontal and vertical scroll mode. ScrollMode will return xtpGridScrollModeNone if the ScrollModeH (horizontal) and ScrollModeV (vertical) scroll modes are different. By default, ScrollMode will return xtpGridScrollModeNone. The default value for ScrollModeH is xtpGridScrollModeSmooth and ScrollModeV is xtpGridScrollModeBlock.

Note: HScrollStep is only used when ScrollMode or ScrollModeH is set to xtpGridScrollModeSmooth.

Important note: FullColumnScrolling is now deprecated, and you should use ScrollMode or ScrollModeH to set horizontal scrolling.

Example

wndGridControl.ScrollModeH = xtpGridScrollModeSmooth

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.