Dynamic Scrollable Grid

Discussion in 'ASP .Net Datagrid Control' started by Nigel Stratton, May 20, 2005.

  1. I have a scrollable datagrid which is created by having

    DataGrid (Header only)
    <div Overflow=auto>
    DetailGrid (without header)
    </div>

    My problem is the grid is dynamically created and the widths of the detail
    columns are determined at runtime according to the content. What I want to
    do is populate the detail grid, then take each column's width and set the
    corresponding column in the header to the same width. The only problem is
    where ever I try to determine the headers column width I always get a width
    of 0.

    Any ideas?
     
    Nigel Stratton, May 20, 2005
    #1
    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. =?Utf-8?B?cG11ZA==?=

    Only Data Grid should be scrollable!

    =?Utf-8?B?cG11ZA==?=, Jan 26, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    734
    =?Utf-8?B?cG11ZA==?=
    Feb 1, 2005
  2. Cristof Falk
    Replies:
    1
    Views:
    563
    =?Utf-8?B?U2hhamk=?=
    May 13, 2005
  3. =?Utf-8?B?U3RldmU=?=

    Scrollable Data Grid

    =?Utf-8?B?U3RldmU=?=, Feb 11, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    400
    Sonu Kapoor
    Feb 12, 2006
  4. sonali
    Replies:
    1
    Views:
    3,625
    eliza81
    Mar 8, 2010
  5. tshad

    Scrollable Grid

    tshad, Sep 5, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    593
    tshad
    Sep 5, 2007
  6. Jeremy Chapman

    Scrollable grid with stationary foxed rows/columns

    Jeremy Chapman, Jul 29, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    4
    Views:
    269
    Jeremy Chapman
    Jul 29, 2003
  7. Mike

    scrollable grid question

    Mike, May 24, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    201
    Saravana [MVP]
    May 25, 2004
  8. Mike

    scrollable grid

    Mike, Jun 9, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    224
    Jeff Drummond
    Jun 10, 2004
Loading...