When I use the RadComboBox through the designer all works correctly. I now want to add the RadComboBox dynamically through code. When I bind this control to a datasource, it will not work for me. Please help.
RadComboBox box = new RadComboBox();
box.DisplayMember =
"name";
box.ValueMember =
"portfolioId";
box.DataSource = p.DefaultView;
box.Top = 10;
box.Left = 10;
Controls.Add(box);