|
-
Aug 9th, 2002, 08:47 AM
#1
Thread Starter
Lively Member
-
Aug 9th, 2002, 08:59 AM
#2
there is a property called SelectedDayStyle
you need to create a tableitemstyle object first
Dim daystyle As New TableItemStyle()
there are some properties you can set like Backcolor, bordercolor, even cssclass if you want to specify an css class to do the styling
then set the selecteddaystyle after you set all your properties
mycalendar.SelectDayStyle = daystyle
That should work. Havent tried it but that looks correct from the info in wincv.exe
-
Aug 9th, 2002, 09:07 AM
#3
Thread Starter
Lively Member
-
Aug 14th, 2002, 04:16 PM
#4
Member
You can also change the behaviour or style of particular cells in the calendar by using the Calendar.DayRender event, i.e.
Private Sub DayRender(Source As Object, e As DayRenderEventArgs) Handles Calendar.DayRender
If e.Day.IsWeekend Then
e.Day.IsSelectable = False
End If
End Sub
This example will disable selection of weekends dates. But you can also use the DayRenderEventArgs object to format the cell if you want to format the cell based on the actual date.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|