Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Databound ComboBox and custom user entry
Message
From
23/06/2005 09:52:11
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Databound ComboBox and custom user entry
Miscellaneous
Thread ID:
01025830
Message ID:
01025830
Views:
60
I want to use a combobox to provide salutaion options ("Mr.", "Mrs", "Phd",...). A lookup-Table "salutation" provides these options.

In my Address-table there is a field "salutation" (varchar(20)).

The Databinding is set up according to the MM rules and works fine (using dataviews dv[tablename]):
BindingSource = Salutation
BindingSourceDisplayMember = Salutation.dvSalutation.Salutation
BindingSourceValueMember = Salutation.dvSalutation.Salutation
BindingValueSource = Address
BindingValueSourceMember = Address.dvAddress.Salutation

The ComboBox is set to DropDownStyle = DropDown.

Now I want to allow the user to enter a custom salutation, like "Your Highness" ;-), which is not provided in the lookup table.

I can type into the ComboBox field, but after saving the record the custom salutation is gone. Only salutations provided by the lookup table can be saved.

Is there a way to provide custom data entry into databound lookup comboboxes?

Thanks in advance,
Soenke
Next
Reply
Map
View

Click here to load this message in the networking platform