Hello,
I try to use DropDownList with datasource, but is not working as expected.
When I Clear() the BindingSource, the RAD component still have "Text" with last item displayed which is abnormal.
Please see the code, the normal windows ComboBox works as expected.
Any fixes?
public partial class Form1 : Form{ List<string> list = new List<string>(); BindingSource bsource = new BindingSource(); public Form1() { InitializeComponent(); bsource.DataSource = list; } private void Form1_Load(object sender, EventArgs e) { //Set list dataSource comboBox1.DataSource = bsource; radDropDownList1.DataSource = bsource; //Now add an element via Binding object bsource.Add("One"); bsource.Add("Two"); } private void button1_Click(object sender, EventArgs e) { bsource.Add("Three"); } private void button2_Click(object sender, EventArgs e) { bsource.Clear(); }}