Back to Devexpress

CalendarProperties.Columns Property

aspnet-devexpress-dot-web-dot-calendarproperties-f120a70d.md

latest2.3 KB
Original Source

CalendarProperties.Columns Property

Gets or sets the number of columns (months) displayed in a multi-view calendar.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(1)]
public virtual int Columns { get; set; }
vb
<DefaultValue(1)>
Public Overridable Property Columns As Integer

Property Value

TypeDefaultDescription
Int321

An integer value that specifies the number of months displayed within a calendar horizontally.

|

Remarks

Note

The Columns property synchronizes its value with the calendar’s ASPxCalendar.Columns property.

Example

This example demonstrates how the ASPxCalendar control can be easily customized to display several months at the same time.

csharp
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="DevExpress.Web.v8.3, Version=8.3.2.0, Culture=neutral, 
PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
</script>

 <html xmlns="http://www.w3.org/1999/xhtml" >
 <head id="Head1" runat="server">
     <title>MultiView of ASPxCalendar</title>
 </head>
 <body>
     <form id="form1" runat="server">
     <div>
         

         <dxe:ASPxCalendar ID="ASPxCalendar1" runat="server" Rows="2" Columns="3">
         </dxe:ASPxCalendar>
     </div>
     </form>
 </body>
 </html>

See Also

Rows

Calendar

CalendarProperties Class

CalendarProperties Members

DevExpress.Web Namespace