I am using Compact Framework 3.5 and have the following code:
var timeouts = new[] {1, 2, 3, 4, 5};
ddlTimeout.DataSource = timeouts;
ddlTimeout.SelectedValue = 3;
And receive the following error on setting selected value. Where's an issue?
Cannot set the SelectedValue in a ListControl with an empty ValueMember
Note: It works well if I use List<> of class objects as DataSource with specifying DisplayMember and ValueMember for the ComboBox.