Hi,
I was wondering if there is a way to disable mouse wheel scrolling inside the ultra win grid cell, when the cell is bound to a value list.
Thanks,
Kateryna
Hello katiaisr,
Thank you for contacting us.
I prepared a sample for you. Please review it and see if it satisfies your needs.
If you have any other questions I will be glad to help.
Can you send a the sample in VB.net please?
Hello mcs2100,
I attached the sample in Visual Basic to this post.
Please review it and feel free to let me know if there is something else that you would like.
Thank you for the quick reply, but it compiles with error, I am using VS2008 Infragistics .dll version of 2011.1. And also it does not let me into design view of the form.. Please advise.
Could you please try the sample attached in this post.
Please feel free to let me know if there are any issues with the application.
Nevermind, I got it working. It works perfectly for me. Thank you for your help
Private Sub UltraGrid1_ControlAdded(sender As System.Object, e As System.Windows.Forms.ControlEventArgs) Handles UltraGrid1.ControlAdded, UltraGrid2.ControlAdded
Dim combo As EmbeddableTextBoxWithUIPermissions
' Set variable to new dropdown combo added to ultragrid control when clicking in cell combo = TryCast(e.Control, EmbeddableTextBoxWithUIPermissions)
' Check if it's nothing If combo IsNot Nothing Then
' Add handler to method which will disable mouse wheel scrolling in combo AddHandler combo.MouseWheel, AddressOf combo_MouseWheel
End If
End Sub
Private Sub combo_MouseWheel(sender As Object, e As MouseEventArgs)
Dim args As HandledMouseEventArgs = DirectCast(e, HandledMouseEventArgs)
' Disables scroll wheel action on control If Not args Is Nothing Then args.Handled = True End If