Calendar Other Month Days

PROKA

Junior Contributor
Joined
Sep 3, 2003
Messages
249
Location
Bucharest
I am using a Calendar control and I want it not to show the 'other month days' . How can I accomplish that ?

The best I did is that I set the foreground = background, so it doesn't really show but the user still can select them :(
 
thanks, I found

it's like that :

Visual Basic:
    Private Sub calResolutions_DayRender(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DayRenderEventArgs) Handles calResolutions.DayRender
        Dim d As CalendarDay = e.Day
        Dim c As TableCell = e.Cell

        If d.IsOtherMonth Then
            c.Controls.Clear()
        End If
    End Sub
 
Back
Top