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. Advertisements

  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. Advertisements

  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. 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?S2VubmV0aA==?=

    Easiest way to bind a grid datasource to a datatable

    =?Utf-8?B?S2VubmV0aA==?=, Jan 18, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    6,994
    =?Utf-8?B?S2VubmV0aA==?=
    Jan 18, 2004
  2. Bruce W...1

    colspan and rowspan problems

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

    Colspan and rowspan

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

    rowspan/colspan in CSS? Does it exist?

    Joshua Beall, Apr 7, 2004, in forum: HTML
    Replies:
    11
    Views:
    70,263
    Barry Pearson
    Apr 9, 2004
  5. Logix
    Replies:
    23
    Views:
    12,173
    Isofarro
    Aug 27, 2004
  6. TheBagbournes

    rowspan/colspan help

    TheBagbournes, Jan 27, 2007, in forum: HTML
    Replies:
    6
    Views:
    2,100
    Jukka K. Korpela
    Jan 28, 2007
  7. Matt Kruse
    Replies:
    7
    Views:
    152
    Csaba Gabor
    Aug 4, 2006
  8. Matt Kruse
    Replies:
    9
    Views:
    617
    mick white
    Nov 30, 2006
Loading...