gridview not 100% width on page

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

    gridview not 100% width on page

    Hi,
    We have a gridview on a webpage, which we would like to be 100% of the
    table cell in which it is placed.
    When we specify the width to be 100%, this has no effect, but only if
    we specify a pixel number, i.e. 800, will the gridview be 800 px wide.

    Here is an example:


    And this may be related, but this page

    displays the grid at 100%, while

    does not, in either firefox or ie.

    btw, using 1024 resolution will seem like the grid is 100% width, but
    when switched to 1280, that's when I can see it.

    Has anyone experienced this?

    Thank you,
    Krzysztof
  • Evertjan.

    #2
    Re: gridview not 100% width on page

    psion wrote on 14 jan 2008 in microsoft.publi c.inetserver.as p.general:
    Hi,
    We have a gridview on a webpage, which we would like to be 100% of the
    table cell in which it is placed.
    When we specify the width to be 100%, this has no effect, but only if
    we specify a pixel number, i.e. 800, will the gridview be 800 px wide.
    >
    Here is an example:

    >
    And this may be related, but this page

    displays the grid at 100%, while

    does not, in either firefox or ie.
    >
    btw, using 1024 resolution will seem like the grid is 100% width, but
    when switched to 1280, that's when I can see it.
    This seems a clientside Q, and if not:

    This is a classic asp group.
    Dotnet questions should be asked in
    <microsoft.publ ic.dotnet.frame work.aspnet>


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Mike

      #3
      Re: gridview not 100% width on page

      2 things,

      1) this is a .NET page your URL is pointing to,this is a ASP group.

      2) beign a .NET developer and having run into this same issue in the pass,
      check your grid settings for each column. Are they a fixed width? If they
      are then the page is rendering correctly. Due to the columns being a fixed
      width, they will remain that even if you shrink down you browser window.

      check for the folllowing:
      columns are a fixed width
      your not allowing word wrap to happen in the columns.

      try those two and post back if they worked.


      "psion" <krzysztof.misz czak@gmail.comw rote in message
      news:b25407f7-3881-49a2-8668-57e7109780c3@i7 g2000prf.google groups.com...
      Hi,
      We have a gridview on a webpage, which we would like to be 100% of the
      table cell in which it is placed.
      When we specify the width to be 100%, this has no effect, but only if
      we specify a pixel number, i.e. 800, will the gridview be 800 px wide.
      >
      Here is an example:

      >
      And this may be related, but this page

      displays the grid at 100%, while

      does not, in either firefox or ie.
      >
      btw, using 1024 resolution will seem like the grid is 100% width, but
      when switched to 1280, that's when I can see it.
      >
      Has anyone experienced this?
      >
      Thank you,
      Krzysztof

      Comment

      Working...