For Programmers: Free Programming Magazines  


Home > Archive > MSDN > July 2005 > multiple display DropDownList









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author multiple display DropDownList
James

2005-07-29, 9:01 am

I am trying to display more than one item in my dropdownlist. It works for one
item returned from the dataset, however, multiple items are causing problems.

With ddl
.DataTextField = dt.Columns(1).ToString
.DataValueField = dt.Columns(0).ToString
.DataSource = dt
.DataBind()
End With

Where the value I want to show currently is only showing First Name
(dt.Columns(1)) and I would like it to also show Last Name (dt.Columns(2))
Any suggestions? I just didn't want to have to change my stored procedure.

Thanks, James.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com