Using latest version of NetAdvantage 2010.3 ultragrid on Win 7 platform.
Is there some VB.NET code showing how to get the mouse wheel to scroll when a cell is in edit mode? Mouse wheel works nicely everywhere else and in DataWidgets 3.11 BUT I cannot get it to work in Ultragrid. Scrollbar works just fine. Why doesn't the mouse wheel!?
bwa
Hi bwa,
What scroll bar are we talking about here? There are any number of reasons why a cell might display a scrollbar in various places. So I need more specifics about what data type the cell is and why it's showing a scrollbar.
Also, is the cell in edit mode?
Makes no difference on the style of the cell, i.e.: dropdown, text (default), edit button,... All that seems to stop mouse wheel scrolling is whether the cell is in edit mode or not. In edit mode, no grid scrolling!?
Hi,
As I said, I tried this out and it worked fine for me. There must be some other factor at work in your application that's not a factor in my sample.
Does the problem occur with any of the samples installed with NetAdvantage (assuming you chose to install the samples)?
Can you post a small sample project here demonstrating the behavior you are getting so I can compare?
I've never installed the samples BUT I will.
Rather difficult to extract a sample project from the 125,000 lines of code and 27 grid controls in the project I'm moving from VB6 to VS2010. But I will try to find a sample that is similar and see what happens with it and the mouse wheel.
I upgraded to 2011.1 and loaded the samples. Mouse wheel works on all the samples. Whoopie, it works on the samples. Still doesn't work on any of my project grids!!
If your project is using the same version as the samples and it works in one and not the other, then there must be something in your project that is different from all of the samples.
Are you sure that your code isn't handling the MouseWheel event anywhere?
If not, then I'm afraid I am at a loss to explain the difference in behavior. It's working fine for me and it's working for all of the samples. So the only thing to do is try to determine what's different about your project.
Since I cannot see your project, you either need to post a sample here which demonstrates the issue or else compare your grid to the grids in the samples (which work) and figure out what's different.
You could try commenting out all of the code you have in any event handlers of the grid and see if the problem goes away.
You could also try copying your real application and then removing parts of it to narrow it down into a smaller sample you could post here.
Boris,
Two problems with the posted example, I think?:
1) We don't have C# loaded; only using VB .NET 2010
2) We're using 2011.1 of NetAdvantage, not 2012.1. Not sure if this has any impact upon the potential fix.
Could you simply explain the fix for the mouse wheel problem so we can give it a try?
Thanks.
That's perfect, thanks very much!
Hello jcwild,
Could you please review the sample attached to this post and see if it meets your requirements.
Please feel free to let me know if I misunderstood you or if you have any other questions.
Ah ha! It seems to be the case that if CellMultiLine is set to True on the column, when editing a cell in that column the MouseWheel does not work.
Can you confirm, and is there a workaround?
I'm finding the exact same thing - MouseWheel scrolls just fine on the grid, but as soon as I enter Edit Mode the grid won't scroll. Did anyone ever come up with an explanation?