I'm going to be developing an events calendar page which will display a list of events for 12 months from the current date (it will be read-only). It's easy enough to grab the data from the DB with a SP passing in the start date and number of months etc, but I need to group the information by month when it is displayed in the page. e.g. :
================================ June 2009 ================================ Event 1 1 June 2009 to 2 June 2009 Event info -------------------------------- Event 2 20 June 2009 to 21 June 2009 Event info ================================ July 2009 ================================ Event 3 1 July 2009 to 2 July 2009 Event info -------------------------------- ...some more months/events here... ================================ May 2010 ================================ Event 99 10 May 2010 to 11 May 2010 Event info --------------------------------
I've seen other posts where people talk about nesting GridViews within Repeaters and vice versa but am unsure how I would achieve the grouping by month using this method.