How to add C1.Win.C1List.C1Combo dynamically to C1.Win.C1FlexGrid.C1FlexGrid

  • MMathuri 6 years, 6 months ago

    Hi,

     

    In My application i need to populate cell with combo box values. I dont want to use C1.Win.C1FlexGrid.C1FlexGrid.ComboList porperty.

    How to add combo box control to Grid cell?

     

    Thanks

    Mathuri

     

  • -1p
    C1_JohnAd-1p 6 years, 6 months ago

    Hi Mathuri,

    You can use the C1FlexGrid.Cols(ColIndex).Editor property to set combobox as
    an editor to enter values in grid cells. This can be done in the following
    manner:

    BEGIN CODE

    Dim combo1 As New ComboBox()
    ''''''' populate the ComboBox

    combo1.Items.Add("1″)
    combo1.Items.Add("2″)
    combo1.Items.Add("3″)
    combo1.Items.Add("4″)

    Me.C1FlexGrid1.Cols(colIndex).Editor = combo1

    END CODE

    I hope this helps.

    Regards,
    John Adams

    wrote in message news:202949@10.0.1.98…
    Hi,

    In My application i need to populate cell with combo box values. I dont want
    to use C1.Win.C1FlexGrid.C1FlexGrid.ComboList porperty.
    How to add combo box control to Grid cell?

    Thanks
    Mathuri

    http://helpcentral.componentone.com/cs/forums/p/74655/202949.aspx#202949

  • MMathuri 6 years, 5 months ago

    Hi,

     

    I have tried as said above but the cell changes to combo box only after placing cursor. Till that time it looks like a plain cell.

    Can you please let me know what i should do to make the cell look like combo when results are loaded.

     

    Thanks

    Mathuri

  • -1p
    C1_JohnAd-1p 6 years, 5 months ago

    Hello Mathuri,

    You may use the following property to make the
    Combo buttons visible all the time.

    me.C1Flexgrid1.ShowButtons =
    C1.Win.C1FlexGrid.ShowButtonsEnum.Always

    I hope this helps.

    Regards,

    Allen Smith

    wrote in message news:203365@10.0.1.98

    Hi,

     

    I have tried as said above but the cell changes to combo box only after
    placing cursor. Till that time it looks like a plain cell.

    Can you please let me know what i should do to make the cell look like
    combo when results are loaded.

     

    Thanks

    Mathuri

    http://helpcentral.componentone.com/cs/forums/p/74655/203365.aspx#203365

  • ryoka012 1 year, 11 months ago

    Thanks for this code.

  • arthursphost1 1 year, 10 months ago

    I want to add ComboBox to flexGrig CELL with different datasources for each CELL, can anybody help me ? your examples working ror column or for Row, not for Cell[/csharp]

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.