System.Web.UI.WebControls Namespace Calendar Class
Sets or retrieves the amount of space between calendar cells.
Inline |
<asp:calendar cellspacing = intPixels ... > |
Script |
Calendar.CellSpacing [ = intPixels ] |
intPixels |
Integer specifying the amount of space ( in pixels ) between adjacent cells. |
The property is read/write with a default value of -1, which indicates that no value is specified.
Use the CellSpacing property to control the spacing between adjacent cells in a Calendar control. This spacing is applied both vertically and horizontally. The cell spacing is uniform for the entire calendar control. Individual cell spacing between each row or column cannot be specified.
NOTE: If you set this property to a value greater than 0 and set the GridLines property to a value that displays the cell borders, a gap is displayed between the borders of adjacent cells. In this situation, the CellSpacing property controls the size of the gap.
Calendar Members CellPadding