C1Combo Hidden Column

Posted by: david on 15 April 2020, 9:27 am EST

    • Post Options:
    • Link

    Posted 15 April 2020, 9:27 am EST

    Hi I have a C1Combo, in the designer I’ve added two columns and hidden one of them. The combo is set to additems and in my code I’m adding data by using the following syntax, cboCompany.AddItem(companyName & “;” & companyKey). This works accept that the companyKey column becomes visible yet it is set to not be displayed in the designer.

    Am I doing something wrong? Does .addItem overwrite the column design specified in the designer? I’ve used the activeX combo in the past and once you set the design its not overwritten.

    Thank you

    David

  • Posted 16 April 2020, 8:11 am EST

    Hi,

    Thank you for the detailed explanation.

    We too can observe the same behavior at our end and escalated this issue to the developers and will inform you once we get any update regarding this.

    [Internal Tracking ID: 431332]



    Regards,

    Prabhat Sharma.

  • Posted 29 April 2020, 8:11 am EST

    Hi,

    We are happy to inform you that we have got the response from the devs and as per them: it’s expected behavior, C1Combo initializes columns for the internal table from the AddItem method if AddItemsCols was not set.

    You can take a look into the attached sample implementing the same.

    Regards,

    Prabhat Sharma.

    C1ComboDemo.zip

  • Posted 12 May 2020, 11:14 am EST

    Thank you for the reply, it’s a shame it AddItem initializes the columns but thanks to the demo I know how to hide them via code.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels