Hi
I am using version 2009.3 1203 of the WinForms Rad controls and when setting the SelectedIndex property of the MultiColumnComboBox control (after is data bound) to -1, I was expecting the combobox selected item to be empty...but it is not, the first one is shown always.
Here is my code:
I am using version 2009.3 1203 of the WinForms Rad controls and when setting the SelectedIndex property of the MultiColumnComboBox control (after is data bound) to -1, I was expecting the combobox selected item to be empty...but it is not, the first one is shown always.
Here is my code:
var results = from company in Collections.CompaniesList |
select new |
{ |
company.Name, |
company.City, |
company.TaxNumber |
}; |
cbCompanies.DisplayMember = "Name"; |
cbCompanies.ValueMember = "ID"; |
cbCompanies.DataSource = results.ToList(); |
cbCompanies.SelectedIndex = -1; |
Any clues why this is happening?