Find datagrid height dynamically

Discussion in 'ASP .Net' started by RJN, Nov 18, 2004.

  1. RJN

    RJN Guest

    Hi

    I need to find the datagrid height dynamically based on the no. of
    records in the grid. I have set the height for the Item style and
    alternating item style. But I can not depend on this since some of the
    records might get wrapped and hence I need to find this dynamically.
    Based on the grid height, I need to align another table in my page. Is
    there a way to do this?

    Thanks

    rjn


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    RJN, Nov 18, 2004
    #1
    1. Advertising

  2. It's a client-side task. You should read/set table height in onload and
    resize client events.

    Eliyahu

    "RJN" <> wrote in message
    news:...
    >
    > Hi
    >
    > I need to find the datagrid height dynamically based on the no. of
    > records in the grid. I have set the height for the Item style and
    > alternating item style. But I can not depend on this since some of the
    > records might get wrapped and hence I need to find this dynamically.
    > Based on the grid height, I need to align another table in my page. Is
    > there a way to do this?
    >
    > Thanks
    >
    > rjn
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
    Eliyahu Goldin, Nov 18, 2004
    #2
    1. Advertising

  3. RJN

    RJN Guest

    I couldn't get the height on the client side. I tried table.style.height
    and row.style.height.




    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    RJN, Nov 22, 2004
    #3
  4. Try table.offsetHeight or table.height.

    Eliyahu

    "RJN" <> wrote in message
    news:...
    > I couldn't get the height on the client side. I tried table.style.height
    > and row.style.height.
    >
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
    Eliyahu Goldin, Nov 22, 2004
    #4
    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. Replies:
    0
    Views:
    545
  2. Wotney
    Replies:
    1
    Views:
    523
    Flinky Wisty Pomm
    Oct 25, 2006
  3. tshad
    Replies:
    1
    Views:
    1,682
    bruce barker
    Mar 8, 2007
  4. Bernd Meier
    Replies:
    6
    Views:
    503
    GTalbot
    Jan 14, 2008
  5. kingflux

    A way to dynamically resize the datagrid's frame height?

    kingflux, Apr 7, 2007, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    855
    kingflux
    Apr 7, 2007
Loading...

Share This Page