Groups | Blog | Home
all groups > asp.net > february 2008 >

asp.net : What's the easiest way to create a grid with rowspan/colspan?


gnewsgroup
2/1/2008 7:52:01 PM
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.

Mark Rae [MVP]
2/2/2008 10:08:43 AM
[quoted text, click to view]

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
gnewsgroup
2/2/2008 8:18:14 PM
[quoted text, click to view]

AddThis Social Bookmark Button