Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / Add user control or other control in ultragrid

Add user control or other control in ultragrid

New Discussion
Jhonny
Jhonny asked on May 13, 2013 7:53 AM

hi, all

I am new in the use of infragistics with datagridview. NET could be adding new controls, making DataGridViewColumn legacy of the class, but I am looking for more to do the same in the ultragrid of infragistics do not consig someone can give me a manito by Please …
 
thanks
Sign In to post a reply

Replies

  • 0
    Mike Saltzman
    Mike Saltzman answered on Jan 3, 2008 2:46 PM

        The Columns in the UltraWinGrid have an Editor and  EditorControl property. These properties can be assigned either an EmbeddableEditorBase or an IProvidesEmbeddableEditor control respectively. So the grid column can use any embeddable editor control as it's editor.

        In addition to that, it's possible to assign a ValueList to a column to provide a dropdown list. 

        Some of the editors, like UltraTextEditor, for example, allow you to add buttons or dropdown buttons. So you could drop down a control of your choice within a grid cell.

        But there is no way to place just any control in a cell automatically.  

    • 0
      Jref
      Jref answered on Jan 3, 2008 4:18 PM

      Hi mike

      Can you please give an example how to drop down button on grid cell using UltraTextEditor

       

      Thanks in advance

      Jref

      • 0
        Mike Saltzman
        Mike Saltzman answered on Jan 4, 2008 3:13 PM

        I don't have any samples of this, but it's pretty easy. Place an UltraTextEditor on the form. Use the ButtonsRight collection to add a DropDownEditorButton. Set the Control property on the DropDownEditorButton to the control you want on the dropdown. Then you set the EditorControl property of the grid column to the UltraTextEditor control.  

      • 0
        Jhonny
        Jhonny answered on Jan 5, 2008 12:55 AM
        Hello Mike 
        Thanks for the help, but I have a doubt, I can not enter my own control to develop, even doing inheritance somewhere as offering the DAtagridview (with his class DataGridViewColumn)?, Good question seriously whether there is something similar to DataGridViewColumn to inherit my control.

        And once again I thank you for your help

         
        Greetings Jhonn
      • 0
        Yasir
        Yasir answered on Jan 5, 2008 3:52 AM

        Thanks, It also solved my problem

      • 0
        Mike Saltzman
        Mike Saltzman answered on Jan 7, 2008 2:28 PM

        No, you cannot derive your own grid column type and use it in the WinGrid, this is not supported.  

      • 0
        Jérôme
        Jérôme answered on Mar 3, 2008 10:26 AM

        Hello,

        It's the first time that I use the Infragistics library controls and I have some difficulties to understand how to custom the WinGrid columns.

        The only solution that I have found (and you explain it in this topic) is to create the controls (like UltraComboEditor) in the form and embeded them in the WinGrid columns by using the EditorProperty of a column… So, I am obliged to hide these controls which are visible and take a lot of space in my form.

        No alternative ?

        Jérôme

      • 0
        Mike Saltzman
        Mike Saltzman answered on Mar 3, 2008 3:07 PM

        I'm not sure what you mean. What exactly are you trying to do to the column that you can't do without using an Editor? 

      • 0
        Jérôme
        Jérôme answered on Mar 3, 2008 3:24 PM

        For example, I need to use a ComboBox for a column in a Grid…

        With the DataGridView from the Dotnet Framework, I can specify that a column is a DataGridViewComboColumn.

        With the UltraGrid from Infragistics, I have to use a UltraComboEditor that I drop in my form. Next, I can link an UltraGrid column with this control via the EditorProperty.

        The problem with your solution is that the UltraComboEditor is visible on the form… I have to set the Visible property to false and drag the control behind the UltraGrid. Does it exist a similar solution like DataGridView from the Dotnet Framework to not have visible controls on the form ?

        Jérôme 

      • 0
        Mike Saltzman
        Mike Saltzman answered on Mar 4, 2008 2:46 PM

        Hi Jerome,

            If you want to provide a dropdown in a grid cell, you do not need to use an UltraComboEditor. Although it can be done that way, it's not the best or most efficient way to do it. If you really want to use an UltraComboEditor, then just set the Visible property of the control to false so it doesn't show up on the form. 

            But I recommend checking out this KB article which will tell you better ways to put a dropdown in a cell.  HOWTO:What is the best way to place a DropDown list in a grid cell?

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Jhonny
Favorites
0
Replies
10
Created On
May 13, 2013
Last Post
18 years, 8 months ago

Suggested Discussions

Tags

Created by

Created on

May 13, 2013 7:53 AM

Last activity on

May 13, 2013 7:53 AM