• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 24
  • Last Modified:

Mousewheel scroll on datagridview

Hello,

How can I add a scroll on a datagridview with mouse  wheel.

I have nearly 10 datagridviews so
  AddHandler DirectCast(ctrl,datagridview).KeyDown, AddressOf  example

Cheers
0
RIAS
Asked:
RIAS
  • 4
  • 3
2 Solutions
 
AndyAinscowCommented:
>>How can I add a scroll on a datagridview with mouse  wheel.

Do you mean the view doesn't scroll already when you use the mouse wheel?  (Where exactly is the mouse cursor over when you try?)
0
 
RIASAuthor Commented:
It does scroll but first I have to select a row and then it scrolls .
0
 
AndyAinscowCommented:
My obvious next suggestion is to select a row (eg. the first one) from code after you populate the gridview.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
RIASAuthor Commented:
Thanks Andy but is there any other way like mouse hoover ..
0
 
RIASAuthor Commented:
Andy found the solution
Datagridview.Select
0
 
AndyAinscowCommented:
>>mouse hoover

LOL - That has given me a crazy mental picture
0
 
RIASAuthor Commented:
Found the solution and have posted the solution.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now