Solved

Nested Repeaters with C#

Posted on 2004-08-05
2
199 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 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