Solved

Mousewheel scroll  on datagridview

Posted on 2016-08-23
7
18 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 44

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 44

Assisted Solution

by:AndyAinscow
AndyAinscow earned 500 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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 44

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

830 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