Hi all,
Francesco from Italy here, working with MS products since I was professionally born... that's like a century ago or something like that!
This is my 1st post in MSDN forums, so I hope it would be well accepted :)
I'm working with datagrdiview and custom numericupdown cell. I started from here
http://msdn.microsoft.com/en-us/library/aa730881(v=vs.80).aspx
So, I downloaded the code attached there, opened the solution with Visual studio 2008, processed the automatic upgrade from 2005 to 2008 and started to play a bit with it.
It works pretty well, since I tried to use it the way you can see in this project
http://www.zshare.net/download/8837656889ff4ca9
What do I do?
- I have a MDI form containing a simple child form
- the child form has a splitcontainer, containing a treeview in the left panel
- the treeeview has 4 nodes and, clicking node 1 or 2, loads an usercontrol, containing datagridview with the custom numericoupdown object.
It looks great!
But... if you play a bit with the fields, you'll get an odd behaviour.
The first object I interact with works pretty well. The second object (hosted by the other usercontrol) has a funny behaviour... It simply doesn't work properly. The fact is that the custom cell behave very badly even if the objects are loaded by design or at runtime (both examples are in the code). Seems like the behaviour of an object influence the behaviour of another obejct (I mean two or more numericupdown objects).
I tried to fix it, by touching here and there, but there is no chance I could come to a decent solution.
The code of the custom numericupdown cell attached is the original one, I made a conversion from 2005 and used it directly in the project. No modification has been performed.
I would like to know if is this fixable or if I should move to another solution (which looks like I should use a new custom object for each usercontrol).
Any kind of suggestion is more than welcome, maybe I'm doing something wrong and have no idea of it.
Thanks in advance.