ScrollMode Property
Description
Gets or sets the scroll mode for the Grid control.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property ScrollMode() As [XTPGridScrollMode](XtremeGridControl~Enumerations~XTPGridScrollMode_EN.md)
Return Type
A value from the XTPGridScrollMode enumeration that specifies the current scroll mode for the grid. By default, ScrollMode will return xtpGridScrollModeNone.
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 modes. 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.ScrollMode = xtpGridScrollModeSmooth
See Also
- GridControl Control
- ScrollModeH Property
- ScrollModeV Property
- XTPGridScrollMode Enumeration
- FullColumnScrolling Property
- HScrollStep Property
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.