469,602 Members | 1,747 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

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

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/ro...ththesamevalue

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?
Feb 2 '08 #1
2 1728
"gnewsgroup" <gn********@gmail.comwrote in message
news:27**********************************@l32g2000 hse.googlegroups.com...
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:Repeaterbut, as you say, an <asp:Tableis probably
the simplest way...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 2 '08 #2
On Feb 2, 5:08*am, "Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote:
"gnewsgroup" <gnewsgr...@gmail.comwrote in message

news:27**********************************@l32g2000 hse.googlegroups.com...
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:Repeaterbut, as you say, an <asp:Tableis 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.
Feb 3 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by yoelgold | last post: by
19 posts views Thread by Logix | last post: by
12 posts views Thread by plugwalsh | last post: by
7 posts views Thread by Gawel | last post: by
7 posts views Thread by Matt Kruse | last post: by
1 post views Thread by =?Utf-8?B?am9uZWZlcg==?= | last post: by
6 posts views Thread by amrhi | last post: by
reply views Thread by guiromero | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.