Formatting in a drop down list in a grid

E

eagle

I have a drop down list in a grid, and the data comes from a sql query.
When I run the query in sql, the format of the data is nicely aligned, but
in the drop down, it is all misaligned. What can I do to get this to align
properly?

This is my query:
select id, str(Factor, 3, 1) + ' ' + ltrim(Convert(varchar, FactorDate,
101)) + substring(Convert(varchar, FactorDate, 100), 12, 6) + ' ' +
Right(Convert(varchar, FactorDate, 100), 2) as FactorInfo from tblFactors

This is the way the result looks in query analyizer (the numbers are right
aligned, the date is aligned left and the time is right aligned).
1.0 01/02/2007 12:00 AM
1.0 01/01/2006 12:00 AM
1.0 01/10/2006 12:00 AM
38 01/01/2007 2:00 PM

Thanks for your help.
 

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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top