I am developing for winforms with infragistics 10.2 controls and I have encountered what I believe to be a bug. Hopefully there is already some documentation or workaround for this since that someone can point out since I can't seem to find an answer.
I have a form with an ultratoolbarsmanager on it. The toolbarsmanager has 2 toolbars, one docked top and one docked bottom. Between the two is a panel that is filling the space.
In the form load event I create an ultragrid and add it to the the panel's clientarea. EVERY time this happens my toolbars disappear. When I remove this the toolbars reappear. This is not a problem in the designer, only at runtime.
Has anyone encountered this before? It looks like a bug.
OK I have a bit more information. The addition of the ultrawingrid is not the problem. I am binding the grid to a dataset with multiple tables. I have a relation created between the two tables and the information populates correctly. But the toolbars still disappear.
Hi,
I've never heard of anything like that before. I very much doubt that this is a bug in the controls. There must be thousands of applications using WinGrid and UltraToolbarsManager together with no problem.
My guess is there's some error in your code that is causing this. Perhaps you are adding the grid to some container and docking it so that it's covering up the toolbars. Or maybe you are calling BringToFront or SendToBack on some object on the form that is causing the toolbars to be overlapped.
I have opend te following support ticket for you: CAS-59337-MM1V6V. I will research your question and will update you in the case. Please feel free to submit any additional questions here or to the mentioned support ticket.
Regards,
Stefaniya
I don't know why this would make the Toolbars disappear, but one obvious pitfall here is that if you are using an UltraPanel as your Fill_Panel, make sure you are adding the grid to the panel's ClientArea, and not directly on the panel itself.
I just redesigned the form without a toolbarsmanager.
Really though I urge you to try this and see if you can repeat the results. I rewrote the form and it happened to me again. I'm fairly certain this isn't a problem with the code.
Add an ultratoolbarsmanager. Add two toolbars top and bottom with a fill panel in between. Add an ultragrid to the fill panel and bind it to a heirarchal dataset.
I've investigated the possibility that this is potentially a docking or z-index issue but im certain it isn't. If this was the case then setting the fill panel and or grid should make the toolbars appear but they do not. They just aren't there. If I have some time later I'll try and recreate it and post the code here.