467,122 Members | 1,329 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,122 developers. It's quick & easy.

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
  • viewed: 5113
Share:
1 Reply
the solution :

AddHandler Me.dataGrid1.MouseWheel, addressof dataGrid1_MouseWheel

Private Sub dataGrid1_MouseWheel(ByVal sender As Object, ByVal e As
MouseEventArgs)

Me.dataGrid1.Select()

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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Niranjan | last post: by
3 posts views Thread by Devonish | last post: by
3 posts views Thread by ilushn | last post: by
5 posts views Thread by Bryan Masephol | last post: by
1 post views Thread by Code Monkey | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.