AD
Administrator
Syncfusion Team
July 20, 2007 10:37 PM UTC
There is no built-in support for this currently. But you can try doing it through the underlying grid's PrepareViewStyleInfo event handle. In the Recurrence sample we ship, you can add this code at the bottom of Form.Load to subscribe to the event.
this.scheduleControl1.Calendar.CalenderGrid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(CalenderGrid_PrepareViewStyleInfo);
Then in the event handler, you can use this code:
void CalenderGrid_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
DateTime dt;
if (e.Style.Text.Length > 0 && DateTime.TryParse(e.Style.Text, out dt))
{
GridControl grid = sender as GridControl;
IScheduleDataProvider dataProvider = this.scheduleControl1.DataSource;
IScheduleAppointmentList list = dataProvider.GetScheduleForDay(dt);
if (list.Count > 0)
{
e.Style.Font.Bold = true;
}
}
}
PA
Paul
July 23, 2007 01:51 PM UTC
That worked great. Thank You.