Hi,
I would like to know which method/object I can call/instantiate to launch the grid designer at runtime. Also, I need to be able to launch the UltraCombo designer!
Thanks!
James
Hi again,
Perhaps I should expand the problem a little to assist with someone answering the question...
I have created a user control that has a couple of controls within, one of them a grid. When I drop the user control onto a form I would like to be able to activate the designer for the grid so it can be setup (as I would like to do with a combo, if I was using one within the control).
I thought that a method around this would be runtime activation, but actually even design-time activation of the designer would be nice, if I could do it to the user control. Would it work if I exposed the inner grid, and added some smart tag which would allow a similar activation to "Ultragrid Designer" on the pop-up menu?
Thanks in advance!
Hi James,
I don't beleive this can be done.
The designer is not accessible via the Start button, however you can access it by clicking on the small triangle at the top right of the grid and a dropdown will appear where you can select Designer Dialog... or you can right-click on the grid and select UltraGrid Designer
Erwin
Any idea if it is possible to start the designer for an inherited UltraCombo? Instead of using a UserControl I inherit from the UltraCombo directly.
I also tried an alternative: add another dummy UltraCombo to the inherited UltraCombo to be able to start the designer. Then at runtime copy the layout from the dummy. But I haven't been able to find a proper way to do this either.
Even if it's possible to launch the designer for one of our controls at runtime (which, from earlier posts in this thread, I don't believe is possible), an application using this approach would not be distributable. It would require distributing the design-time assemblies for our controls, which is specifically disallowed by the Infragistics License Agreement.
My problem is at design time. I don't need the designer at runtime. I missed the fact that the start of this thread was about runtime, but the last few posts are about design time.
In that case, you probably need to add a Design attribute to your derived class that points to the UltraCombo designer.
I think it would look something like this:
[Designer("Infragistics.Win.UltraWinGrid.Design.UltraComboDesigner, Infragistics2.Win.v8.2.Design, Version=8.2.0.XXXX, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb")]
You will have to change some of the numbers to use the correct versions, of course.