I'm having some trouble doing something that seems very simple but I just don't know what I'm doing wrong....
On Form_Load I populate a combobox with
Private Sub cbo1_SelectedValueChanged(sender As Object, e As EventArgs) Handles cbo1.SelectedValueChanged
dim productID as string=""
cbo1.SelectedValue = ProductID
Cannot set the SelectedValue in a ListControl with an empty
I'll wager that the issue is that you're binding in the wrong order. You should always set the
DataSource last, not first. Try changing that and see if your issue goes away. The problem is that setting the
DataSource means that the control is bound, so an item will be selected and the appropriate events raised before you have set the