GridView columns don't respect width or wrap properties!

Discussion in 'ASP .Net Web Controls' started by Dan English, Jul 6, 2006.

  1. Dan English

    Dan English Guest

    I have a GridView control with manually added bound columns. I have
    specified ItemStyle.Width=125px and ItemStyle.Wrap=false for several
    columns. It doesn't seem to respect either of these properties, there is no
    effect at all. What can I do to make them work?

    Thanks,
    Dan
     
    Dan English, Jul 6, 2006
    #1
    1. Advertisements

  2. Dan English

    Akash Deep Guest

    Re: GridView columns don't respect width or wrap prope ...

    In GridView RowDataBound Event
    Set the Column wrap=false
    i.e e.Row.cells(0).Wrap=False

    Akash Deep


    ---
    Posted via www.DotNetSlackers.com
     
    Akash Deep, Jul 14, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. AndrewF
    Replies:
    1
    Views:
    1,055
    Bruce Barker
    Oct 10, 2005
  2. kris
    Replies:
    11
    Views:
    1,103
  3. Noozer
    Replies:
    22
    Views:
    31,326
    Noozer
    Jan 17, 2005
  4. Replies:
    4
    Views:
    1,152
  5. ssk
    Replies:
    5
    Views:
    6,438
    Jukka K. Korpela
    Oct 30, 2006
  6. AD
    Replies:
    1
    Views:
    9,816
  7. Beemer Biker
    Replies:
    0
    Views:
    2,721
    Beemer Biker
    Jan 26, 2009
  8. kriton
    Replies:
    0
    Views:
    581
    kriton
    Apr 22, 2005
Loading...