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

  • Thread starter Thread starter gnewsgroup
  • Start date Start date
G

gnewsgroup

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?
 
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...
 
You could use an <asp:Repeater> but, as you say, an <asp:Table> is probably
the simplest way...

OK, I think I'll have to go with the Table control. Thx.
 
Back
Top