Hi,
I have problems on setting initial value and text on ComboBox
I have a master grid and details window with lots of fields.
One of details field is ComboBox used to search/select from a huge table [ID int, Name string] that is filtered as you type in ComboBox. ComboBox is populated only with max 50 records from a huge table
Everything works almost fine except that I want to dynamically set value ant text for this combobox depending on values in another datasource.
I've tryied like this, but it does not work. ComboBox value becomes equal text or vice versa.



cb.SelectedItem.Text = Convert.ToString(r[displayText]);
cb.SelectedItem.Value = Convert.ToString(r[f.DataIndex]);