From vb6.tdbCombo to vb.net C1.Win.C1List.C1Combo

Posted by: juan.ome on 24 May 2019, 11:44 am EST

    • Post Options:
    • Link

    Posted 24 May 2019, 11:44 am EST

    Hi

    We are migrating from VB6 to vb.net, we found that the equivalent of Tdbcombo control in vb.net is C1. Win. C1List. C1Combo. In VB6 The control has DataMode property and his value can be 0 = Bound, but for C1Combo the property DataMode exists but has not the value Bound, only has two possible values: Normal and AddItem. How to make that C1combo Works bound? Or are we wrong with the vb.net equivalence?

    In order to we can bound a column, wich are the properties equivalents for boundcolumn and datafield?

  • Posted 27 May 2019, 6:06 am EST

    Hello,

    DataMode property of tdbCombo specifies that tdbCombo have several options(5) to set the data in the combo while DataMode property of C1Combo specifies that C1Combo generally have only two option to set the data in the combo.

    To make the C1Combo works bound set the DataMode property of C1Combo to Normal and set the data in the DataSource property.

    There is no equivalents property like boundcolumn and datafield of tdbCombo in C1Combo. However, you can refer to the “ValueMember” and “DisplayMember” property of C1Combo. Please refer to the following link for more reference:

    https://help.grapecity.com/componentone/NetHelp/c1list/webframe.html#C1.Win.C1List.4~C1.Win.C1List.C1Combo~DisplayMember.html

    https://help.grapecity.com/componentone/NetHelp/c1list/webframe.html#C1.Win.C1List.4~C1.Win.C1List.C1Combo~ValueMember.html

    Also, you can refer to the following product sample which shows, how to bind C1Combo to a DataSet:

    C:\Users{User Name}\Documents\ComponentOne Samples\WinForms\C1List\VB\Tutorial2

    Hope it helps.

    Thanks.

Need extra support?

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

Learn More

Forum Channels