Home All Groups Group Topic Archive Search About

dropdownlist multiple fields in text?

Author
28 Jul 2006 6:47 PM
HockeyFan
Is there a way to bind the DataTextField property of a dropdownlist to two
fields instead of just one?
I'd like to have Lastname, Firstname if possible.  Is there a way?

Author
31 Jul 2006 6:21 AM
puja
hi

u can't have 2 values for data text field
an alternative solution would be in ur sql query , select (firstname + '  '
+ lastname) as name from customers

and u can have "name" as datatextfield value.

hope this helps


Show quoteHide quote
"HockeyFan" <Hockey***@discussions.microsoft.com> wrote in message
news:5979C884-58F7-4570-8E54-D17DB19F296C@microsoft.com...
> Is there a way to bind the DataTextField property of a dropdownlist to two
> fields instead of just one?
> I'd like to have Lastname, Firstname if possible.  Is there a way?
>