Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8392409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:30:44+00:00 2026-06-09T19:30:44+00:00

Background: I have a gridview which is very wide. Some of the headers have

  • 0

Background:

I have a gridview which is very wide. Some of the headers have a space in them. Because of this the second word of each header is wrapped to the second line. How do I prevent this?

Previous Attempts:

So far, I’ve tried the following with no luck.

  1. Tried setting the <ItemStyle Wrap="False" /> property in the <boundfield...> tag
  2. Tried setting the HeaderStyle-Wrap="false" attribute in the gridview tag
  3. According to http://www.velocityreviews.com/forums/t292904-gridview-header-wrap.html I needed to remove it from all parent objects. I removed it from all and it still wraps.
  4. I tried setting the width of each column in the databound tag. This did not work.
  5. I’ve tried setting Wrap="false" in the <headerstyle tag

SceenShot

enter image description here

Question:

How do I prevent the header text in a gridview from autowrapping in a very wide gridview?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:30:46+00:00Added an answer on June 9, 2026 at 7:30 pm

    What I ended up doing was just creating an arbitrarily large width for the gridview as to let it have enough room. The only downfall to this is that it doesn’t dynamically grow and shrink depending on how much space it actually needs. Not a real solution so if somebody has a better solution post it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need to set image as background in android gridview. I have code which
Background: I have a ListView / GridView with several columns. In some situations, only
Background : I have a few different threads which each need to write to
I have a (DevExpress) GridView with which I programmatically set background and text colors
Background I have a GridView that builds a table using an ObjectDataSource . This
OK, so this is bugging me. I have a gridview in ASP.net which I've
I have a GridView of Tiles, each of which has the following as their
I have a GridView inside an UpdatePanel and because of some bug I can't
Background : I have a GridView which gets populated from an SqlDataSource via DataSourceID.
BACKGROUND: I have a GridView based on a fairly complex Adapter class which extends

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.