How to make sure there is enough space between columns' header text?

Hi, I'm using vs2012.
My gridview has 4 columns that has enough width for text but the header text looks like one continuous line of text with no space.  How can I fix this?  Thanks.
lapuccaAsked:
Who is Participating?
 
Mike EghtebasConnect With a Mentor Database and Application DeveloperCommented:
with the last solution you can use the smart tab to configure.
0
 
Mike EghtebasDatabase and Application DeveloperCommented:
GV Header
0
 
lapuccaAuthor Commented:
Because I bind the data using custom code with a generic collection so I can't use the smart tab to configure.  However, I think you're suggesting to abbreviate my header text, so it will not show so close to the next header text?  Interesting, there is no way to configure to make sure there is a min gap of space between columns?
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
Mike EghtebasDatabase and Application DeveloperCommented:
Despite your description about binding w/ generic collection you still can do it.gv header
0
 
lapuccaAuthor Commented:
Can do what?  Make the headertext shorter?  Sure, I can do that in my code.  What I'm asking is how to keep the full text but will enough gap between columns.  Thank you,
0
 
lapuccaAuthor Commented:
Ah, yes, clicking Edit Columns, it is smart enough to show all my columns.  But looking at your screen shot, I'm not sure how to configure the column to have enough space between the columns?  Thank you.
0
 
Mike EghtebasDatabase and Application DeveloperCommented:
I will suggest you to add some code to your app that sets the width of each column as you want. Also, in the same code align your fields center, right, etc. Plus add formats (date, money, etc). And then if still your gridview is not wide enough, you can add horizontal scroll to it.

Mike
0
 
lapuccaAuthor Commented:
Yes, that is my question.  How to set width for these 3 columns.  Any example code or url of example code?  Thanks.
0
 
lapuccaAuthor Commented:
Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.