Solved

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

Posted on 2014-12-20
9
69 Views
Last Modified: 2015-01-05
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.
0
Comment
Question by:lapucca
  • 5
  • 4
9 Comments
 
LVL 33

Expert Comment

by:Mike Eghtebas
ID: 40511330
GV Header
0
 

Author Comment

by:lapucca
ID: 40511358
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
 
LVL 33

Expert Comment

by:Mike Eghtebas
ID: 40511371
Despite your description about binding w/ generic collection you still can do it.gv header
0
 

Author Comment

by:lapucca
ID: 40511376
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 33

Accepted Solution

by:
Mike Eghtebas earned 500 total points
ID: 40511378
with the last solution you can use the smart tab to configure.
0
 

Author Comment

by:lapucca
ID: 40511380
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
 
LVL 33

Expert Comment

by:Mike Eghtebas
ID: 40511388
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
 

Author Comment

by:lapucca
ID: 40511391
Yes, that is my question.  How to set width for these 3 columns.  Any example code or url of example code?  Thanks.
0
 

Author Closing Comment

by:lapucca
ID: 40531930
Thank you.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now