My setting:
I have a combo with a collection of Items as datasource: "Male", Female"
I would like these selections to be exclusive so I use a DropDownStyle:
DropdownList
If I bind this combo to .Text property none of my selection changes are
recorded in the database.
I found a newsgroup message saying it is because it is readonly when
DropDownStyle: DropdownList is selected.
So I tried to bind to
.SelectedItem appears to work properly but if I only browse records it still
ask me if I want to save my dataset changes (identified by a
Dataset.HasChanges check). Of course I do not want this. I did not make any
changes. And if I save my changes and close the application immediately it
will still ask me if I want me to save my changes. But I just saved.
.SelectedValue (nothing appears in the combo)
.SelectedText (nothing appears in the combo)
Can any one help?
TIA
Jan
PS
I have a very similar combo that is bound to a datatable (not a collection
of items) in the dataset. This combo behaves correctly when bound to
.SelectedValue.