Class AutoScrollOrientation
Defines the constants that specify the orientation for auto-scrolling in SfDataGrid.
Inheritance
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public sealed class AutoScrollOrientation : Enum
Remarks
This enumeration is used by the AutoScroller class to determine the direction in which the SfDataGrid should be scrolled automatically when the selection is dragged outside the visible boundaries.
Fields
Both
Both horizontal and vertical orientation for auto-scrolling.
Declaration
public const AutoScrollOrientation Both
Field Value
| Type |
|---|
| AutoScrollOrientation |
Remarks
Specifies that the SfDataGrid should scroll along both the horizontal and vertical axes when the selection is dragged outside the visible boundaries in any direction.
Horizontal
Only horizontal orientation for auto-scrolling.
Declaration
public const AutoScrollOrientation Horizontal
Field Value
| Type |
|---|
| AutoScrollOrientation |
Remarks
Specifies that the SfDataGrid should scroll only along the horizontal axis when the selection is dragged outside the left or right visible boundaries.
None
No orientation for auto-scrolling.
Declaration
public const AutoScrollOrientation None
Field Value
| Type |
|---|
| AutoScrollOrientation |
Remarks
Specifies that auto-scrolling is disabled. The SfDataGrid will not scroll automatically when the selection is dragged outside the visible boundaries.
Vertical
Only vertical orientation for auto-scrolling.
Declaration
public const AutoScrollOrientation Vertical
Field Value
| Type |
|---|
| AutoScrollOrientation |
Remarks
Specifies that the SfDataGrid should scroll only along the vertical axis when the selection is dragged outside the top or bottom visible boundaries.