Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Mousewheel scroll  on datagridview

Posted on 2016-08-23
7
Medium Priority
?
22 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 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
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

715 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