AR
Anupama Roy
Syncfusion Team
May 10, 2006 09:48 AM UTC
Hi Singh,
My sincere apologies for the delay in response.
Rather than using SetInfo method ,I suggest DateCellQueryInfo event which lets you customize the appearance of cells.
Please take a look at the sample code snippet.
VB:
Private Sub MonthCalendarAdv1_DateCellQueryInfo(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Tools.DateCellQueryInfoEventArgs) Handles MonthCalendarAdv1.DateCellQueryInfo
If (e.DateValue > DateTime.Today) Then
e.Style.BackColor = Color.Aqua
End If
End Sub
C#:
private void MonthCalendarAdv1_DateCellQueryInfo(object sender, Syncfusion.Windows.Forms.Tools.DateCellQueryInfoEventArgs e)
{
if ((e.DateValue > DateTime.Today))
{
e.Style.BackColor = Color.Aqua;
}
}
Please feel free to let us know if you have any difficulties.
Thanks for choosing Syncfusion.
Regards,
Anu.