473,554 Members | 3,281 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scroll in Datagrid with mousewheel

Hi folks.
I have a problem with a Datatgrid.
When my User selects a row in the Datagrid he is able to scroll through the
Grid by using the Mousewheel.
The prob is that when the selectedrow is scrolled out of the grid u cannot
use the mousewheel to scroll anymore.

Does anyone know zhis prob and maybe has a solution?
Nov 21 '05 #1
1 5846
the solution :

AddHandler Me.dataGrid1.Mo useWheel, addressof dataGrid1_Mouse Wheel

Private Sub dataGrid1_Mouse Wheel(ByVal sender As Object, ByVal e As
MouseEventArgs)

Me.dataGrid1.Se lect()

End Sub

"Marcel Sengers" wrote:
Hi folks.
I have a problem with a Datatgrid.
When my User selects a row in the Datagrid he is able to scroll through the
Grid by using the Mousewheel.
The prob is that when the selectedrow is scrolled out of the grid u cannot
use the mousewheel to scroll anymore.

Does anyone know zhis prob and maybe has a solution?

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1655
by: Niranjan | last post by:
I downloaded Access Mouse Scroll Hook from www.lebans.com. I have Windows 2000 and Access 2000. It did not work on my machine. I copied the dll to c:\Winnt\system folder and then opened the database in 2000 (I converted the database to 2000 in order to test it). I havent copied any code to my application yet since it did not work yet. Is it...
0
1562
by: Eddie Smit | last post by:
Hi all, In our database we have a form with a subform. If this subform contains some records, but they al 'fit' in this subform one can scroll down with the mouse. But one CAN NOT SCROLL UP with the mouse again. If one wants to see the top records again in this subform you have to use the vertical scroll bar (arrows)!! (if the subform...
3
3977
by: Devonish | last post by:
I have a form designed as a Continuous form which displays one record per line. Taking account of the header and footer and the size of the screen, I can display 30 records at a time. I can see other records by scrolling up or down with either the scroll bar on the right of the screen, or the up and down arrows which are above and below...
3
2202
by: ilushn | last post by:
Help! I am having a very aggervating problem with Access. Call me lazy, but I like to copy and paste addresses from Access into microsoft work, like for sending letters where I only need about 3 envelopes. The problem is that some of my envelopes are coming back for "wrong addresses". I figured out that when I'm in Access my information is...
5
4349
by: Bryan Masephol | last post by:
Hi All I got a datagrid and a ComboBox on a form. I populate the combobox with years for all the data avaiable. When the user chooses a year the datagrid is populated with the specific years information. Problem... when the users scrolls the datagrid with the mouse wheel it work for 2 wheel clicks and then for some reason the focus...
1
10903
by: Code Monkey | last post by:
using VS2005 and c# to create a windows forms application. One of my forms has a panel which I've added various controls to. Now, I've set the autoscroll property to true, which is great, but I can't use my mousewheel to scroll up or down and its annoying the hell out me. How do I get a panel to scroll on mousewheel scroll event? Hope...
7
11505
by: James | last post by:
Hi, I have a Windows Forms application which uses multiple child forms (MDI interface). The height of one of the child forms is larger than the height of the MDI client area, so when this form is visible, the vertical scroll bar of the MDI parent appears automatically. What I want to do is write a routine within the MouseWheel event of...
1
2148
by: bob | last post by:
The help system says you can "get" (not set) the number of lines the mouse moves upon one "notch" of the wheel. The value for my system is 4. How do I force it to do only 1. Give me the EASY way, please. (I'm putting this code into a "mousewheel" event, so I want the number of lines scrolling to be the same for my computer as well as any...
1
3367
by: Roscoe | last post by:
Hi, my first post here. I am running Access2000 SP3 under XP Pro SP2 and I have a Logitech MX 3000 cordless mouse. My problem is that the mousewheel will not scroll in a listbox. It will scroll anywhere else - in the VBE, in subforms, in all other applications, just not in a listbox. I would be very grateful for any suggestions as to how to get it...
0
7596
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8039
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7887
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5152
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3556
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3545
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
838
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.