Live Chat Icon For mobile
Live Chat Icon

How to hide ‘other months’ in a Calendar Control

Platform: ASP.NET| Category: Calendar

In the Calendar DayRender Event

VB.NET


If e.Day.IsOtherMonth = True Then
	e.Cell.Text = ''
End If

C#


if (e.Day.IsOtherMonth = true)
{
            e.Cell.Text = '';
}

Share with

Share on twitter
Share on facebook
Share on linkedin