开发者

winforms synchronise combobox values

开发者 https://www.devze.com 2022-12-17 04:36 出处:网络
I am trying to synchronise the selectedvalue of a combobox when navigating through records. Setting the combobox.selectedvalue doesn\'t work. I have tried refreshing the combobox but that doesn\'t wor

I am trying to synchronise the selectedvalue of a combobox when navigating through records. Setting the combobox.selectedvalue doesn't work. I have tried refreshing the combobox but that doesn't work either. The co开发者_Python百科mbobox is databound.


If your ComboBox is data-bound (i.e. you've properly set its DataSource property), then you also need to make sure its DisplayMember and ValueMember properties are set to the correct fields.

0

精彩评论

暂无评论...
验证码 换一张
取 消