o disable scrolling in an Infragistics UltraWinGrid (UltraGrid), you can control both vertical and horizontal scrolling behavior using its properties.
Here’s how to disable scrolling entirely
This will:
🧩 Alternative: Lock Scrolling Direction
If you want to allow only one direction (e.g., vertical only), you can use:
// Allow only vertical scrolling ugReports.DisplayLayout.Scrollbars = Scrollbars.Vertical; // Or only horizontal ugReports.DisplayLayout.Scrollbars = Scrollbars.Horizontal;
🛑 Prevent Scroll Wheel Scrolling (Optional)
If you want to block mouse wheel scrolling as well:
private void ugReports_MouseWheel(object sender, MouseEventArgs e) { ((HandledMouseEventArgs)e).Handled = true; }
And register the event:
ugReports.MouseWheel += ugReports_MouseWheel;