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

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?
 
M

Mark Rae [MVP]

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

gnewsgroup

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,829
Latest member
KimberAlli

Latest Threads

Top