Solved

Nested Repeaters with C#

Posted on 2004-08-05
2
200 Views
Last Modified: 2008-03-17
I have an object that looks like this :

int frequency
string term
string eventtitle
string presenter
string phone
string email
DateTime begintime
DateTime endtime
.....etc.....

Now on my display page I have an array of these objects named events.

I would like the page to display as follows:

Monthly (frequency = 2)
-----------------------------------------------------
           Fall (term)
           ~~~~~~~~~~~~~~~~~~~~~~~~~
             Event 1 (eventtitle)      Joe Smith (presenter)     ...etc.....
             Event 3 (eventtitle)      John Jacobs(presenter)     ...etc.....
             Event 4 (eventtitle)      Mary Black (presenter)     ...etc.....

           Winter (term)
           ~~~~~~~~~~~~~~~~~~~~~~~~~
             Event 2 (eventtitle)      Bob Brown (presenter)     ...etc.....
             Event 6 (eventtitle)      Suzy Sanchez(presenter)     ...etc.....

Weekly (frequency = 1)
-----------------------------------------------------
           Summer(term)
           ~~~~~~~~~~~~~~~~~~~~~~~~~
             Event 10 (eventtitle)      George Jefferson (presenter)     ...etc.....

           Winter (term)
           ~~~~~~~~~~~~~~~~~~~~~~~~~
             Event 21 (eventtitle)     Jim Ploney (presenter)     ...etc.....
             Event 67 (eventtitle)     Henry Howards (presenter)     ...etc.....


So basically grouped first on frequency,
then within frequency grouped on term,
then within term ordered by event title


I can change the array of objects to a collection or some other structure, but cannot access the database tables directly (using a N-tier structure for our project) becaues we are isolating the presentation layer from the data and business layers.

How do I go about binding this data to a repeater or datalist in order to have the heirarchical display mentioned above.

Thanks!!

 
0
Comment
Question by:mrichmon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Author Comment

by:mrichmon
ID: 11887521
OKay apparently no one here knows the answer...

I came up with a work around which is to write a function in the presentation layer that manually calculates whether it is a new group or not.

A very clumsy/clunky work-around, but it works
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 11890170
Closed, 500 points refunded.
CetusMOD
Community Support Moderator
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question