K
kids_pro
Hi,
On form_load() I bind a combobox to a dataset and listbox to a datatable.
When I want to unbind it I call comboBox1.DataSource = null,
listBox1.DataSource = null
It unbind but the Items still persist in the comboBox and listBox. I expect
it to be empty list.
Can anyone tell me how to unbind the comboBox and automatically clear it
items?
Regards,
kids
On form_load() I bind a combobox to a dataset and listbox to a datatable.
When I want to unbind it I call comboBox1.DataSource = null,
listBox1.DataSource = null
It unbind but the Items still persist in the comboBox and listBox. I expect
it to be empty list.
Can anyone tell me how to unbind the comboBox and automatically clear it
items?
Regards,
kids