Skip to content

DataGridView and Mouse Wheel

P H

Asked Nov 3, 2005, 10:26 PM EST2 answers
Share
LinkedInX
Hello, I found small problem with this beauty control called DataGridView (WinForms, .net2.0). There is no MouseWheel event, and prof apps I would like to write shoud be able to scroll grid up and down using mouse wheel. Any ideas how to do it? Some example?

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Unfortunately, I have no Framework 2.0 installed. But:
    1. Framework 1.x has DataGrid methods GridHScrolled/GridVscrolled to listen scroll events. May be there's something like it in 2.0?
    2. May be it's the help error. Try to use the event.
    3. See here to see how to use "hidden" features of object
    0
  • 0
    Thanks for reply, yes, there is event called: Scrolled, but its fired when scroll happens... mouse wheel doesnt fire any event on DataGridView. I'm still loking for it :)
    0