Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
Adding a UserControl to the UltraWinGrid
posted
Hello,

I've seen samples of adding drodown lists and combo boxes to cells in the UltraGrid. No issue as long as we're adding Ultra controls...

I've developed a new usercontrol inheriting the Microsoft TextBox. I've extended the properties and methods to popup a list in a modal form if the user double-clicks that text box. All works fine if that is simply placed on a form.

Now I'd like to add that usercontrol to a cell in the ultragrid so that the user can double-click the cell and see the popup-form as usual. We don't want a dropdown list (I know how to do that).

We want to add a usercontrol to any cell (in this case the "extended" TextBox) in the UltraGrid.

I'm open to any suggestions, even developing a new control, possibly inheriting an "Ultra" control and extending that IF that will allow me to add that in an UltrGrid cell. I have looked at this: http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/WinGrid_Using_Any_Windows_Forms_Control_as_a_Drop_Down_inside_WinGrid.html

I get an error citing that my control does not support the IProvidesEmbeddableEditor interface. I have looked at this article and also the articles/advice from Mike Saltzman.

Any advice on this will do!

I did post a message through priority support through our business account/login but "priority" does not seem to be the key word there :-)

Parents
  • 37774
    posted

    There is no simple way of embedding a control inside the grid as you do need to implement IProvidesEmbeddableEditor, which is not a trivial task.  There have been some posts in the past couple months where people have accomplished this with a user control, however, so you may want to search the forums for an example of this.  In your particular case, though, I think that the much easier solution would be to use an UltraTextEditor with a DropDownButton in the ButtonsRight collection, as is mentioned in the help article that you linked, since it would be fairly time-consuming to fully flesh out the IProvidesEmbeddable interface as well as the editor infrastructure.

    -Matt

Reply Children
No Data