D
Doug
I'm trying to code something so that I can line up product information
under it's titles like so:
Product#: Qty Price Product Name
6666 1 7.5 Product2
Using the \t code in C# doesn't work because where it tabs to for each
line isn't always the same.
So I tried to pad spaces to each section and line them up that way.
So I would add 5 spaces to "Product#:" which brought it to 15, and so
on with the rest of the titles.
I then do the same thing with each line underneath the titles, adding
spaces to the product value until I get to 15 and so on with the
others.
So everything should line up I would think. But it doesn't, things
still are off ever so slightly.
Is there another way to code this that I'm just not seeing?
under it's titles like so:
Product#: Qty Price Product Name
6666 1 7.5 Product2
Using the \t code in C# doesn't work because where it tabs to for each
line isn't always the same.
So I tried to pad spaces to each section and line them up that way.
So I would add 5 spaces to "Product#:" which brought it to 15, and so
on with the rest of the titles.
I then do the same thing with each line underneath the titles, adding
spaces to the product value until I get to 15 and so on with the
others.
So everything should line up I would think. But it doesn't, things
still are off ever so slightly.
Is there another way to code this that I'm just not seeing?