Reference > TDBCalendar Control > TDBCalendar Control Properties > SelectWhat Property (TDBCalendar) |
The SelectWhat property determines the type of dates that can be selected.
TDBCalendar.SelectWhat= value
Read/Write at run time and design time.
Design Time |
Run Time |
0 - Any day (Default) |
dbiSelAnyDay |
1 - Workday |
dbiSelWorkday |
2 - Holiday |
dbiSelHoliday |
When SelectWhat is set to 0- Any day, any dates can be selected in the calendar control, and usually this will be the setting. When set to 1- Workdays, only workdays can be selected, and all holidays and weekend days will be ignored. When set to 2- Holidays, all holidays and weekend days can be selected.
If the calendar control is in multiple selection mode, all selected dates will be added to the Selections collection property, and Value property for single selection mode.
When SelectWhat is set to something other than "0- Any day", the focus rectangle can locate on a date that cannot be selected, but will not be selected.