Display 1 data row as multiple datagrid rows

Discussion in 'ASP .Net Datagrid Control' started by Craig Banks, Feb 20, 2004.

  1. Craig Banks

    Craig Banks Guest

    If a row of data in a dataset has a lot of columns the row displaying the
    data in a datagrid will run way off the screen. What I'd like to do is
    display a row of data over several datagrid rows so the user doesn't have to
    scroll horizontally. Essentially, I want to wrap a datagrid row (not text in
    individual columns) with as much control as possible. Make sense?

    While this seems simple enough on the surface, I can't figure out how to do
    it and the scant information I've seen on the Internet says it can't be done
    without buying a 3rd party datagrid -- Infragistics' NetAdvantage was
    recommended. To make a long story short, I called them and it isn't clear
    their NetAdvantage product supports this either.

    In the past, I've done this building HTML tables on the fly but my team at
    work wants to standardize on using the datagrid since most of our developers
    come from a VB6, not a web development, background.

    Thanks for the help!
    Craig Banks, Feb 20, 2004
    #1
    1. Advertising

  2. Craig Banks

    Jos Guest

    "Craig Banks" <> wrote in message
    news:...
    > If a row of data in a dataset has a lot of columns the row displaying the
    > data in a datagrid will run way off the screen. What I'd like to do is
    > display a row of data over several datagrid rows so the user doesn't have

    to
    > scroll horizontally. Essentially, I want to wrap a datagrid row (not text

    in
    > individual columns) with as much control as possible. Make sense?
    >
    > While this seems simple enough on the surface, I can't figure out how to

    do
    > it and the scant information I've seen on the Internet says it can't be

    done
    > without buying a 3rd party datagrid -- Infragistics' NetAdvantage was
    > recommended. To make a long story short, I called them and it isn't clear
    > their NetAdvantage product supports this either.
    >
    > In the past, I've done this building HTML tables on the fly but my team at
    > work wants to standardize on using the datagrid since most of our

    developers
    > come from a VB6, not a web development, background.
    >
    > Thanks for the help!


    I would suggest using a datalist instead of a datagrid.
    You will lose the advantage of the datagrid to generate all
    columns automatically, so you'll need to build templates.
    Sorting and paging will also require a little bit more work
    with a datalist.

    --

    Jos Branders
    Jos, Feb 21, 2004
    #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. Brian
    Replies:
    2
    Views:
    1,918
    Brian
    Dec 24, 2003
  2. Craig Banks
    Replies:
    1
    Views:
    767
    Craig Banks
    Feb 20, 2004
  3. Nicolla MacPherson
    Replies:
    4
    Views:
    393
    Karl Heinz Buchegger
    Aug 13, 2003
  4. ethem
    Replies:
    1
    Views:
    1,187
    Ashok Kunwar Singh
    Mar 2, 2011
  5. D
    Replies:
    0
    Views:
    203
Loading...

Share This Page