[CLOSED] ComboBox load value
Hi all,
I want to know what is the best way to load the combo from code behind in v.2 .
In fact, in v.1, I use the following code:
Code:
this.comboBoxCompanies.Value = employee.getCompanyId;
where employee.getCompanyId is an integer.
In v.2 , I use the following code:
Code:
this.comboBoxCompanies.SelectedItems.Add(new Ext.Net.ListItem { Value = "" + employee.getCompanyId });
this.comboBoxCompanies.UpdateSelectedItems();
The two previous code work good, but I'm wonder if there is a way in v.2 to load data in the same way as in v.1
Best Regards