winforms synchronise combobox values
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.
精彩评论