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?
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.
Mike,
I don't use the .MouseWheel event anywhere in the project and it doesn't even fire when a cell is in Edit mode, so that route to resolving the problem is not viable.
I've gone the route of commenting out all the events, keymappings, appearance descriptions, overrides, etc. to see if anything works. Nada!
The project saves and loads grid layout files. I commented out these routines. With absolutely nothing being done with the grid upon load other than it being connected to its arraylist datasource, it still will not scroll with the mouse wheel if a cell is in Edit mode. I can't get to a more bare bones grid control! And with everything commented out it isn't of much use!
I've informed my client he will just have to live without mouse wheel scrolling if a cell is in Edit mode. I cannot think of anything else to do and have already wasted far too much time chasing this!
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?
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?