Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sync a drop down to existing data?
Message
 
To
15/04/2003 11:14:29
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00777710
Message ID:
00778130
Views:
22
>Stephen,
>
>You need to DataBind it, like this:
>
>this.DataBindings.Add("SelectedValue", MyDataSet, "ap_opening");
>
Uhm, that's Windows Forms code <g>...

But yeah, you can just assign the value to the SelectValue property in code or use the DataBinding expressions in the HTML text.

FWIW, SelectedValue is new property for list style items in .Net 1.1. It doesn't exist in 1.0 for Web forms.

+++ Rick ---

>
>~~Bonnie
>
>
>>I have an edit page with a few (to many) drop downs.
>>
>>First is Opening, the Select Distinct from the data brings back 8 items and I add the other 2 making a total of 10 items.
>>
>>When the user picks a new item to edit how do I sync the opening "Left" dropdown with the dataset ap_opening column?
>>
>>TIA
>>
>>__Stephen
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform