GridView column text wrap width

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AD

    #1

    GridView column text wrap width

    Hi,

    I have a problem where my text in a GridView column is being wrapped
    in the middle of the column and does not fill the full width of the
    column, any idea why this would happen, and how I can control it?

    Thanks

  • Mike

    #2
    Re: GridView column text wrap width

    Hi,

    What you need to do is add the no wrap to the column. This can be done two
    was the first is applied to all columns:

    <ItemStyle wrap="False"></ItemStyle>
    <HeaderStyle wrap="False" HorizontaAlign= "Centre"></HeaderStyle>

    The second approach is to only apply it to a column:

    <asp:boundColum n DataField..>
    <ItemStyle wrap="False" HorizontaAlign= "Left"></ItemStyle>
    <HeaderStyle wrap="False" HorizontaAlign= "Centre"></HeaderStyle>
    </asp:boundColumn >

    - Mike

    ---------------------------------------------------------------------------------
    <a href="http://www.cogitar.net "Cogitar Software. (
    http://www.cogitar.net ) </a>
    http://www.cogitar.net Cogitar Software. (Software Development and Managment
    Systems)
    http://www.web-dominion.co.uk Web-Dominion. (Web Design and hosting )
    http://shop-dominion.com (senery landscape pictur gallery)
    ---------------------------------------------------------------------------------

    "AD" <adriaandavel@y ahoo.co.ukwrote in message
    news:1176888354 .634722.149670@ n59g2000hsh.goo glegroups.com.. .
    Hi,
    >
    I have a problem where my text in a GridView column is being wrapped
    in the middle of the column and does not fill the full width of the
    column, any idea why this would happen, and how I can control it?
    >
    Thanks
    >

    Comment

    Working...