Is it my imagination or is the ComboBox seriously broken? Maybe it is just
my "luck" that I am trying to use it in a way no one else is using it...

Problem #1:
When in DropDown mode (not DropDownList) even you can select and manipulate
text with the keyboard (Shift+End to select, etc) the mouse is inoperative.
You cannot select text with the mouse. Maybe this is the behavior of the
stock Win32 combo, but it is rather annoying nonetheless.

Problem #2:
Simple binding with DropDown style. I just want to bind the currently
selected value to a DataSet field. The list of items are populated by using
.Items.AddRange(new Object[] { "Item1", "Item2", "etc..." });

Unfortunately none of the standard binding properties seem to work as
advertised. The docs say that if ValueMember and DisplayMember are
String.Empty then the ComboBox will use .ToString() on the objects in the
array. So SelectedValue should be the .ToString() value of my currently
selected array element. Instead I find that  SelectedValue is null.
SelectedIndex is correct but doesn't help me. Text is correct, but the
TextChanged event does not fire and so the binding doesn't detect the
change.

So what can I bind to? All I need is the text that is displayed to be bound
to my DataSet field. Will using a RowSource compatible object instead of an
array of Objects work more effectively?

Feedback is much appreciated!

--
Peter

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to