Click here to Skip to main content
15,905,590 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

Please tell how to assign a starting and ending point for each column string.
e.g i have 4 columns. Date, particular, debit, balance. So like date should be from 0-10, then particular 12-40 like this..
please tell me how can i do this..
Posted
Updated 21-Feb-14 19:58pm
v2
Comments
OriginalGriff 22-Feb-14 3:47am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Perhaps an example of what you are trying to do would help? And an explanation of how you are trying to do it?
Use the "Improve question" widget to edit your question and provide better information.

1 solution

There are numerous ways to do this. One way would be:

string str = String.Format ("{0,-10} {1,30}", date, particular)

Details:

http://msdn.microsoft.com/en-us/library/system.string.format(v=vs.110).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900