I've got a datagrid that has a subset of data for each row, containing events with dates. I'd like to be able to databind a calendar control that shows these events.
The calendar does not support databinding, but rather ondayrender event. My problem with this is that this event isn't fired until after all the datagrid's databinding, so it OnDayRenders all the datagrid's calendars at once (to the last row's data subset).
My next attempt was to manually loop through all the days in the calendar control in the datagrid's itemdatabound event. I found this to be to no avail as there isn't a way to loop through the days like this:
For Each d As CalendarDay in CType(e.Item.FindControl("calMedia"), Calendar).Days
'Do Work
Next
there is no .Days property or any sort of equivalent in the Calendar control.
Any Suggestions?