In the DayRender Event of calendar Control
VB.NET
If e.Day.IsOtherMonth Then
e.Cell.Text = ' '
Else
e.Cell.Text = e.Day.DayNumberText
End If
C#
if (e.Day.IsOtherMonth )
{
e.Cell.Text = ' ';
}
else
{
e.Cell.Text = e.Day.DayNumberText;
}
Share with