Suggest a new product idea for Infragistics Windows Forms

I'd like to disable the mousewheel zoom feature in the Spreadsheet control.

I'd like to disable the mousewheel zoom feature in the Spreadsheet control.

When the user rotates the mouse wheel while holding the control key pressed, the spreadsheet control magnifies or reduces its content. I would like to prevent this happening.

Ref. CAS-181808-J8V0H0

1 vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)

    We’ll send you updates on this idea

    raul rosenthalraul rosenthal shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Chris SheaChris Shea commented  ·   ·  Flag as inappropriate

        Hello Raul,
        While currently there is no property or event that provides the ability to disable this zooming, you can easily prohibit it from occurring by deriving your own SpreadSheet control from our UltraSpreadsheet, and overriding the OnMouseWheel() method. In this override, simply check if the Control key is pressed, and skip calling the base.OnMouseWheel() implementation:
        public class MySpreadsheet : UltraSpreadsheet
        {
        protected override void OnMouseWheel(MouseEventArgs e)
        {
        if (Control.ModifierKeys.HasFlag(Keys.Control))
        return;

        base.OnMouseWheel(e);
        }
        }

        I hope this helps achieve your desired functionality.

      Feedback and Knowledge Base