Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gnewsgroup - 02 Feb 2008 03:52 GMT
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?
Mark Rae [MVP] - 02 Feb 2008 10:08 GMT
> 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...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

gnewsgroup - 03 Feb 2008 04:18 GMT
> > 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.
[quoted text clipped - 5 lines]
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net

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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.