Formatting DropDownList Rows

G

George Durzi

I have a stored procedure that is returning a column which is

cast(company_name as char(30)) + ' | ' + cast(client_name as char(20) + ' |
'

2by4 Brand Architects | Test, TEst |
3M Corporation | Diehl, Mary Ann |
3M Corporation | Kleinfeldt, Barbara |

(formatting above may be off), but the char datatype gives me the nice
spacing.

When I call this SP to create a dataset, and bind it to a drop down list,
all the extra spaces are gone, and the rows in the drop down list look like:

2by4 Brand Architects | Test, TEst |
3M Corporation | Diehl, Mary Ann |
3M Corporation | Kleinfeldt, Barbara |

How can I maintain that formatting ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top