Back to Devexpress

DayView.DayCount Property

aspnet-devexpress-dot-web-dot-aspxscheduler-dot-dayview-7d265c56.md

latest2.9 KB
Original Source

DayView.DayCount Property

Gets or sets the number of days that are simultaneously displayed within the Day View.

Namespace : DevExpress.Web.ASPxScheduler

Assembly : DevExpress.Web.ASPxScheduler.v25.2.dll

NuGet Package : DevExpress.Web.Scheduler

Declaration

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

Property Value

TypeDefaultDescription
Int321

A positive integer value that specifies the number of days displayed by the View.

|

Remarks

Use the DayCount property to specify the number of days simultaneously displayed within the Day View starting from the date set for the ASPxScheduler.Start property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DayCount property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-mvc-scheduler-fetch-appointment-event/CS/DevExpressMvcSchedulerFetchAppointments/Models/SchedulerSettingsHelper.cs#L36

csharp
settings.Views.DayView.ShowWorkTimeOnly = true;
settings.Views.DayView.DayCount = 2;
settings.Start = new DateTime(2012, 5, 9);

asp-net-mvc-scheduler-fetch-appointment-event/VB/DevExpressMvcSchedulerFetchAppointments/Models/SchedulerSettingsHelper.vb#L34

vb
settings.Views.DayView.ShowWorkTimeOnly = True
settings.Views.DayView.DayCount = 2
settings.Start = New Date(2012, 5, 9)

See Also

Start

DayView Class

DayView Members

DevExpress.Web.ASPxScheduler Namespace