ASP.NET ShowGridLines Property

Definition and Usage

The ShowGridLines property is used to specify whether grid lines are used to separate dates in the Calendar control.

True if grid lines are used to separate dates in the Calendar control; otherwise, false. The default value is false.

Syntax

<asp:Calendar ShowGridLines="TRUE|FALSE" runat="server" />

Example

The following example sets ShowGridLines to TRUE:

<form runat="server">
<asp:Calendar id="cal1" runat="server">
ShowGridLines="TRUE" />
</form>

Example

Show grid lines in the Calendar control.