473,378 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Lining up values under titles

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?
Jul 21 '05 #1
0 1042

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Doug | last post by:
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...
2
by: tshad | last post by:
I have a Datagrid that has no rows in it, but I want the title to show, and they aren't. Is there a way to make them visible even if the Datagrid is empty? Thanks, Tom
0
by: Doug | last post by:
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...
8
by: ibiza | last post by:
Hi SQL fans, I realized that I often encounter the same situation in a relation database context, where I really don't know what to do. Here is an example, where I have 2 tables as follow: ...
3
by: Kitana907 | last post by:
Hi- I am having issues with adding up fields in a subform. I have a form that has a subform in datasheet mode. It lists titles of books with their correlating units and dollar amount . The...
4
by: Adam | last post by:
I have four roughly square DIVs, all the same height, which I need to line up horizontally across the page. What would be the best way to do this? At the moment I have a very botched solution where...
1
by: tgmurray | last post by:
Hi everyone. I am getting the results I would like in Firefox and Netscape but unfortunately not in IE7. My problem is that my uordered lists is not lining up with an image that has been...
2
by: alexburi | last post by:
Hi, I'm having a problem with the bullets lining up correctly with text in each <li>. If there is only one line of text, the bullet matches. But if there are two lines of text or more, the bullet...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.