The following example handles the BaseView.MouseWheel event to perform horizontal scrolling, instead of vertical scrolling, when the mouse wheel is rotated.
The View is horizontally scrolled by changing the GridView.LeftCoord property value.
To prevent the default vertical scrolling action, the event handler sets the Handled parameter to true.
using DevExpress.Utils;
using DevExpress.XtraGrid.Views.Grid;
private void gridView1_MouseWheel(object sender, MouseEventArgs e) {
GridView view = (sender as GridView);
view.LeftCoord += e.Delta;
(e as DXMouseEventArgs).Handled = true;
}
Imports DevExpress.Utils
Imports DevExpress.XtraGrid.Views.Grid
Private Sub GridView1_MouseWheel(sender As Object, e As MouseEventArgs) Handles GridView1.MouseWheel
Dim view As GridView = CType(sender, GridView)
view.LeftCoord += e.Delta
DirectCast(e, DXMouseEventArgs).Handled = True
End Sub