Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to show 2 columns in drop down list
Message
From
10/11/2006 14:11:42
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01168759
Message ID:
01168828
Views:
18
Dimitry you mean select padr(alltrim(ID_FIELD),10,' ') + DESC_FIELD as MYNEWFLD
and then on the drop down list you set DataTextField as the mynewfld.
Everything should work fine.

>Follow up question:
>
>I created a two-field expression by selecting from the VFP table as following:
>
>
>select padr(alltrim(ID_FIELD),10,' ' + DESC_FIELD as MYNEWFLD
>
>
>But the drop-down-list ignores spaces used to pad the ID_FIELD.
>Instead the DLL only shows one space, therefore, the alignment of
>the two column does not work.
>
>What character can I use in place of the space (in the PADR()
>above) to make it work? Is there a CHR(n) that does not show but
>still would be recognized by ASP.NET?
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform