Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Mousewheel scroll  on datagridview

Posted on 2016-08-23
7
Medium Priority
?
23 Views
Last Modified: 2016-08-28
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
Comment
Question by:RIAS
  • 4
  • 3
7 Comments
 
LVL 45

Expert Comment

by:AndyAinscow
ID: 41766821
>>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
 

Author Comment

by:RIAS
ID: 41766824
It does scroll but first I have to select a row and then it scrolls .
0
 
LVL 45

Assisted Solution

by:AndyAinscow
AndyAinscow earned 2000 total points
ID: 41766855
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.

 

Author Comment

by:RIAS
ID: 41766862
Thanks Andy but is there any other way like mouse hoover ..
0
 

Accepted Solution

by:
RIAS earned 0 total points
ID: 41766878
Andy found the solution
Datagridview.Select
0
 
LVL 45

Expert Comment

by:AndyAinscow
ID: 41766933
>>mouse hoover

LOL - That has given me a crazy mental picture
0
 

Author Closing Comment

by:RIAS
ID: 41773595
Found the solution and have posted the solution.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question