G
Guest
Hey,
How can I set the display value of a combobox empty? But all the posible
choices are available when I push the trianglebut.
Sometimes if I set the selecteditem = null it works, other times it don't
work and sometimes I receive an error 'Additional information: Value cannot
be null'.
this.CmbDataSource = SoortKwijtingList.Items; // Arraylist
this.Cmb.DisplayMember = "Omschrijving";
this.Cmb.ValueMember = "Id";
this.Cmb.SelectedItem = null;
I don't understand that, what is so unstable? Has it something to do with
the moment of databinding?
Thanks in advance
jac
How can I set the display value of a combobox empty? But all the posible
choices are available when I push the trianglebut.
Sometimes if I set the selecteditem = null it works, other times it don't
work and sometimes I receive an error 'Additional information: Value cannot
be null'.
this.CmbDataSource = SoortKwijtingList.Items; // Arraylist
this.Cmb.DisplayMember = "Omschrijving";
this.Cmb.ValueMember = "Id";
this.Cmb.SelectedItem = null;
I don't understand that, what is so unstable? Has it something to do with
the moment of databinding?
Thanks in advance
jac