The ability to scroll by row or column in the FlexGrid control while dragging the scrollbar thumb improves data visibility and navigation through large datasets. This feature ensures complete column data is visible, reducing the need for excessive horizontal scrolling.
The ScrollMode property of the C1GridControl class can be used to enhance the display of row or column data while scrolling. The value of the ScrollMode property can be set by using the GridScrollMode enumeration, which provides the following two options:
Options | Description |
Pixel | Allows you to scroll the grid by pixels when dragging the scrollbar thumb. It is the default property. |
Dimension | Enables you to scroll the grid by row or column when dragging the scrollbar thumb. |
The image below demonstrates the scrolling behavior of both rows and columns when the ScrollMode property is set to Dimension.
You can use the following code to set the value of the ScrollingMode property: This example uses the sample used in Quick Start topic.