What's the easiest way to create a grid with rowspan/colspan?

Discussion in 'ASP .Net' started by gnewsgroup, Feb 2, 2008.

  1. gnewsgroup

    gnewsgroup Guest

    I have a stored procedure that give some data that are sorted by Col1,
    Col2, Col3, Col4.

    I have a picture which tells you how I want the data to be presented
    in a web form. Click below to see the picture.

    http://gnewsgroup.googlepages.com/rowspanajacentcellswiththesamevalue

    It's basically a tabulation of a tree. For a given column, if an
    entry has been displayed, don't repeat it. Thus we need rowspan (as
    shown in the picture) or colspan (not shown in the picture).

    I know that I can construct the table by spitting out the tr and td
    elements, but I am wondering if there is an easier way to do it.

    Any thought to share?
    gnewsgroup, Feb 2, 2008
    #1
    1. Advertising

  2. "gnewsgroup" <> wrote in message
    news:...

    > I know that I can construct the table by spitting out the tr and td
    > elements, but I am wondering if there is an easier way to do it.


    You could use an <asp:Repeater> but, as you say, an <asp:Table> is probably
    the simplest way...


    --
    Mark Rae
    ASP.NET MVP
    http://www.markrae.net
    Mark Rae [MVP], Feb 2, 2008
    #2
    1. Advertising

  3. gnewsgroup

    gnewsgroup Guest

    On Feb 2, 5:08 am, "Mark Rae [MVP]" <> wrote:
    > "gnewsgroup" <> wrote in message
    >
    > news:...
    >
    > > I know that I can construct the table by spitting out the tr and td
    > > elements, but I am wondering if there is an easier way to do it.

    >
    > You could use an <asp:Repeater> but, as you say, an <asp:Table> is probably
    > the simplest way...
    >
    > --
    > Mark Rae
    > ASP.NET MVPhttp://www.markrae.net


    OK, I think I'll have to go with the Table control. Thx.
    gnewsgroup, Feb 3, 2008
    #3
    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. Bruce W...1

    colspan and rowspan problems

    Bruce W...1, Oct 22, 2003, in forum: HTML
    Replies:
    2
    Views:
    3,279
    Jerry Perkins
    Oct 22, 2003
  2. Klaus Wertler

    Colspan and rowspan

    Klaus Wertler, Nov 25, 2003, in forum: HTML
    Replies:
    8
    Views:
    1,433
    Sid Ismail
    Nov 27, 2003
  3. Joshua Beall

    rowspan/colspan in CSS? Does it exist?

    Joshua Beall, Apr 7, 2004, in forum: HTML
    Replies:
    11
    Views:
    68,834
    Barry Pearson
    Apr 9, 2004
  4. Logix
    Replies:
    23
    Views:
    11,612
    Isofarro
    Aug 27, 2004
  5. TheBagbournes

    rowspan/colspan help

    TheBagbournes, Jan 27, 2007, in forum: HTML
    Replies:
    6
    Views:
    1,798
    Jukka K. Korpela
    Jan 28, 2007
Loading...

Share This Page