Reference > TDBCalendar Control > TDBCalendar Control Properties > MonthCols Property (TDBCalendar) |
The MonthCols and MonthRows properties are used to determine the number of calendar months to display in the control. By setting the MonthCols property, calendar months will be added horizontally to the control.
TDBCalendar.MonthCols= integer
Read/Write at run time and design time.
1 - 12 (1 is the default)
The spacing between the months that are displayed horizontally can be set using the MarginWidth property.
The MonthCols property count times MonthRows property count cannot exceed twelve. In other words, the control can display only up to twelve months at once.
If the month columns and the month rows allow more months to be displayed in the control than the maximum and the minimum range specifed, the months out of the range will be drawn using the trailing day attributes.