Datagrid layout difficulty

Discussion in 'ASP .Net Datagrid Control' started by zdrakec@yahoo.com, May 25, 2005.

  1. Guest

    Hello all:

    I have a datagrid that can grow when populated; when it does, it
    "overflows" various controls I have placed beneath it on the form. I
    have tried switching to Flow layout for the page, but the layout thus
    produced is unsatisfactory. I would welcome suggestions for how to
    re-locate my controls at runtime. My first thought was to retrieve the
    styles for the grid, get the top and height values (so I would know
    where to place the following controls), but height is not in the style
    and I have deliberately not set the height at design-time so as to have
    consistent row sizes. At run-time, the height still reports as 0.0...

    Any suggestions will be most welcome.

    Thanks much,
    zdrakec
    , May 25, 2005
    #1
    1. Advertising

  2. Sonu Kapoor Guest

    I never define the location of the controls. It can be really annoying to
    have such a problem. Why dont you insert the controls in a table or something
    without defining the location?

    --
    Sonu Kapoor - [MCP]
    ASP.NET Moderator
    WebSite: http://www.Kapoorsolutions.com
    Blog: http://www.Kapoorsolutions.com/blog/
    ASP.NET News: http://www.Kapoorsolutions.com/reblogger/


    "" wrote:

    > Hello all:
    >
    > I have a datagrid that can grow when populated; when it does, it
    > "overflows" various controls I have placed beneath it on the form. I
    > have tried switching to Flow layout for the page, but the layout thus
    > produced is unsatisfactory. I would welcome suggestions for how to
    > re-locate my controls at runtime. My first thought was to retrieve the
    > styles for the grid, get the top and height values (so I would know
    > where to place the following controls), but height is not in the style
    > and I have deliberately not set the height at design-time so as to have
    > consistent row sizes. At run-time, the height still reports as 0.0...
    >
    > Any suggestions will be most welcome.
    >
    > Thanks much,
    > zdrakec
    >
    >
    Sonu Kapoor, May 30, 2005
    #2
    1. Advertising

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. Rick Spiewak
    Replies:
    3
    Views:
    3,151
    Rick Spiewak
    Aug 26, 2003
  2. RobertH
    Replies:
    1
    Views:
    720
    Steve C. Orr [MVP, MCSD]
    Nov 4, 2003
  3. NWx
    Replies:
    4
    Views:
    2,960
    Kevin Spencer
    Feb 19, 2004
  4. Eric
    Replies:
    4
    Views:
    711
    clintonG
    Dec 24, 2004
  5. Replies:
    1
    Views:
    572
    John Timney \(MVP\)
    Jun 19, 2006
Loading...

Share This Page