how to dynamically add combobox in windows forms(C#) and bound it to a column of a table in sql database

前端 未结 3 1966
我寻月下人不归
我寻月下人不归 2021-01-07 14:48

My windows form has an ADD button which adds a combo box to the form after each click. The problem is, i am not able to bind it to a table column at run time. Using an exist

3条回答
  •  借酒劲吻你
    2021-01-07 14:57

    Should be fine if you create a new local ComboBox variable in the clickevent. If you use a global variable for the ComboBox this might explain your problems. But without a sample how you're doing it's hard to see what's really happening, so think this is just a rough guess

提交回复
热议问题