System.Web.UI.WebControls Namespace Calendar Class
Returns or set a value indicating whether days on the calendar are displayed with a border.
[ VB ]
Public Property ShowGridLines As Boolean
[ C# ]
public bool ShowGridLines {get; set;}
[ C++ ]
public: __property bool get_ShowGridLines ( );
public: __property void set_ShowGridLines ( bool );
[ JScript ]
public function get ShowGridLines ( ) : Boolean;
public function set ShowGridLines ( Boolean );
This property accepts or returns only a boolean value: true if the days on the calendar are displayed with a border; otherwise false. The default value is false.
Not all browsers support gridlines.
The following example demonstrates how to set the ShowGridLines property to display the grid lines between days in the Calendar.
<asp:Calendar id = "myCalendar" runat = "server"
ShowGridLines = "True" />
Calendar Members