Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to show 2 columns in drop down list
Message
 
 
À
10/11/2006 14:11:42
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01168759
Message ID:
01168830
Vues:
17
>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.
>

It should but it does not. That is, the field MYNEWFLD does appear in the dropdown list with both the ID_FIELD and the DESC_FIELD. But the first character of the DESC_FIELD appears all over the place. This is because DLL ignores the spaces I use to pad the field ID_FIELD. And I use mono spaced font (Courier New), so I am baffled to what is going on there.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform