Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Nested Repeaters with C#

Posted on 2004-08-05
2
Medium Priority
?
203 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

604 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