The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
I need to know if I can use Syncfusion.windows.Forms.Grid.GridStyleInfo to
MonthCalendar.SetInfo() sub. If yes how. I am tring to change the appearance of cells available in month calendar control with respect to my selection of dates.
Thx
ARAnupama 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.