jboy jboy - 4 months ago 76
C# Question

C# Calander Style Booking

I am using a Database System which contains data relating to a private school with regards to booking lessons etc. I am looking to display the dates available for students to book blocks of lessons in a calendar style layout with unavailable blocks in a red background and available blocks in a grey background for example. Any help with how this can be done? I tried using DataGridView but was unsure as where to go from there



Please look into the calendar date picker class. This is a drop down for picking dates.

This is the .net framework caldendar date picker https://msdn.microsoft.com/en-us/library/system.windows.controls.datepicker(v=vs.110).aspx

For blacking out dates https://msdn.microsoft.com/en-us/library/system.windows.controls.datepicker.blackoutdates(v=vs.110).aspx

These two links should help you for exactly what you're trying to do.