ComboBox Issue: Cannot bind to new value member

后端 未结 6 1631
甜味超标
甜味超标 2021-01-14 08:02

I\'v got a combobox that I created as a user control(it\'s actually made up of a label, combobox and textbox). I\'m trying to bind a dataset to the combobox datasource, but

6条回答
  •  一整个雨季
    2021-01-14 08:18

    I had same issue while binding. I reversed the order and everything started working. The original code will look like this

      ((ucComboBox)ctrl).combobox.ValueMember = "radiology_id";
      ((ucComboBox)ctrl).combobox.DisplayMember = "radiology_name";
      ((ucComboBox)ctrl).combobox.DataSource = info;
    

提交回复
热议问题