R
Ryan
I am databinding the dropdown list of a textbox in ASP.net. I am
trying to get three columns to display to the user. Since I can't do
that normally, I made my query display the three columns like so:
COLUMN1 + padding spaces to = 12 total characters | + ' ' COLUMN1 +
enough padding spaces to = 12 total characters | ' ' + COLUMN3
I then choose a fixed width font and everything should look like it
does in this nice example:
Fish0 0 | Swim 0 | Ocean
Fish00 | Swim 0 | Oceans2
In other words: pretty and lined up.
Unfortunately, it seems that the text box control likes to remove
spaces it does not deem necessary. An my nice columns go all screwy,
despite my fixed width font.
I know that there are probably controls out there that I could use to
do what I want, but is it possible to do this with the existing default
listbox control? Is there, for example, a character that will display
as a space that is not a space, thereby getting the textcontrol or IE
to keep it?
By the way, I tried outputting   in the query instead of spaces but
the text box rendered them as the string   not as spaces...
Thanks,
Ryan
trying to get three columns to display to the user. Since I can't do
that normally, I made my query display the three columns like so:
COLUMN1 + padding spaces to = 12 total characters | + ' ' COLUMN1 +
enough padding spaces to = 12 total characters | ' ' + COLUMN3
I then choose a fixed width font and everything should look like it
does in this nice example:
Fish0 0 | Swim 0 | Ocean
Fish00 | Swim 0 | Oceans2
In other words: pretty and lined up.
Unfortunately, it seems that the text box control likes to remove
spaces it does not deem necessary. An my nice columns go all screwy,
despite my fixed width font.
I know that there are probably controls out there that I could use to
do what I want, but is it possible to do this with the existing default
listbox control? Is there, for example, a character that will display
as a space that is not a space, thereby getting the textcontrol or IE
to keep it?
By the way, I tried outputting   in the query instead of spaces but
the text box rendered them as the string   not as spaces...
Thanks,
Ryan