internal static List <CalendarWeekItem> Generate(List <ICalendarItem> ds, DateTime startDate, DateTime endDate)
        {
            List <CalendarWeekItem> lst = new List <CalendarWeekItem>();

            while (startDate.StartOfWeek() < endDate.StartOfWeek())
            {
                CalendarWeekItem wi = new CalendarWeekItem(startDate.StartOfWeek().Date);
                wi.Items = ds.Where(x => x.WeekStart == startDate.StartOfWeek().Date).ToList();
                lst.Add(wi);
                startDate = startDate.AddDays(7);
            }
            return(lst);
        }
        private void BuildText(GridViewRow row, string lblId, CalendarWeekItem d, DayOfWeek dw)
        {
            var lbl = ((Label)row.FindControl(lblId));

            lbl.Text = d.GetItems(dw);
        }