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 :-)
Matt, here's another option that one of your colleagues offered me:
Another solution to this request is to set the Cell Activate for the Column containing the Cell where the popup-form is located to NoEdit or Activate Only. Then by handling either the WinGrid's Click or Double-Click Event to display the popup-form when the user clicks in the Cell. The user will then choose the value from the popup-form and whichever value the user clicks would then have to be manually captured and transferred back to populate the Cell which was clicked.
So, I might cause the click or double-click event on the intended cell to instantiate my popupform and display it in modal form or as a dialogue box then return the text value to the cell upon closing the popup form. Not sure yet as I need the cell to hold other data too which not visible but for background use. eg: The cell displays the text but the pertinent data for updating/writing back to the db would be the itemID on that item displayed in the cell.
If you have other ideas or can shed light on the approach, that would be great!
Thanks
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