Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > DropDownList

Reply
Thread Tools

DropDownList

 
 
anonymous
Guest
Posts: n/a
 
      06-22-2004
In a drop down list you can assing the value from
recordset like this:
country.DataTextField = "country"
country.DataValueField = "Code"
What if I need to assign more value to a DataValueField
from a recordset. Something like this:
country.DataTextField = "country"
country.DataValueField(1) = "Code"
country.DataValueField(2) = "Code1"
How do I do this?

 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      06-23-2004
Merge all values into one string and that parse it?

Eliyahu

"anonymous" <(E-Mail Removed)> wrote in message
news:1fee301c4588f$11aaf280$(E-Mail Removed)...
> In a drop down list you can assing the value from
> recordset like this:
> country.DataTextField = "country"
> country.DataValueField = "Code"
> What if I need to assign more value to a DataValueField
> from a recordset. Something like this:
> country.DataTextField = "country"
> country.DataValueField(1) = "Code"
> country.DataValueField(2) = "Code1"
> How do I do this?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DropDownList inside GridView: How to set SelectedIndex for the DropDownList? keithb ASP .Net 1 11-01-2006 05:24 AM
GridView: Filter DropDownList for another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-29-2005 07:44 AM
GridView: Filtr DropDownList from another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-23-2005 01:31 PM
databinding a Dropdownlist to another dropdownlist tshad ASP .Net 8 10-19-2005 10:00 PM
Using a data-bind dropdownlist to populate another data-bind dropdownlist mr2_93 ASP .Net 1 10-02-2005 05:07 PM



Advertisments