Back to Devexpress

SchedulerControl.Start Property

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-666a76f9.md

latest6.0 KB
Original Source

SchedulerControl.Start Property

Gets or sets the first date of the time interval displayed by the scheduler view.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[XtraSerializableProperty(999)]
public DateTime Start { get; set; }
vb
<XtraSerializableProperty(999)>
Public Property Start As Date

Property Value

TypeDescription
DateTime

A DateTime value that is the start date of the scheduler.

|

Remarks

The Scheduler’s start date is the beginning of the time interval displayed in the SchedulerControl.ActiveView.

Note

  • Year and Month views can automatically change the value of the Start property.
  • The SchedulerControl.GoToDate method changes the value of the Start property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Start 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.

winforms-scheduler-range-control-sample-app/CS/SampleSchedulerRangeControl/Form1.cs#L24

csharp
InitSkinGallery();
schedulerControl.Start = System.DateTime.Now;

winforms-scheduler-serialize-deserialize-appointments/CS/DXApplication1/SerializationHelper.cs#L37

csharp
scheduler.DataStorage.Appointments.Add(objAppointment);
    scheduler.Start = DateTime.Today;
}

winforms-scheduler-display-custom-tooltips/CS/Form1.cs#L103

csharp
schedulerControl1.Start = baseTime;
}

winforms-scheduler-get-appointment-by-source-object/CS/Form1.cs#L31

csharp
if (schedulerStorage1.Appointments.Count > 0)
        schedulerControl1.Start = schedulerStorage1.Appointments[0].Start;
}

winforms-scheduler-gantt-view/CS/dxT183299/Form1.cs#L27

csharp
InitializeComponent();
schedulerControl.Start = System.DateTime.Now;
schedulerStorage.Resources.ColorSaving = ColorSavingType.Color;

winforms-scheduler-range-control-sample-app/VB/SampleSchedulerRangeControl_VB/Form1.vb#L14

vb
Me.InitSkinGallery()
schedulerControl.Start = DateTime.Now
AddHandler schedulerStorage.AppointmentsChanged, AddressOf schedulerStorage_AppointmentsChanged

winforms-scheduler-serialize-deserialize-appointments/VB/DXApplication1/SerializationHelper.vb#L29

vb
scheduler.DataStorage.Appointments.Add(objAppointment)
    scheduler.Start = Date.Today
Next

winforms-scheduler-display-custom-tooltips/VB/Form1.vb#L85

vb
schedulerStorage.Appointments.Add(apt)
    schedulerControl1.Start = baseTime
End Sub

winforms-scheduler-get-appointment-by-source-object/VB/Form1.vb#L40

vb
dataGridView1.DataSource = carsDBDataSet.CarScheduling
    If schedulerStorage1.Appointments.Count > 0 Then schedulerControl1.Start = schedulerStorage1.Appointments(0).Start
End Sub

winforms-scheduler-bind-sql-server-customize-update-delete-insert-queries/VB/Form1.vb#L38

vb
schedulerStorage.Appointments.DataSource = dataSet.Tables("CarScheduling")
If schedulerStorage.Appointments.Count > 0 Then schedulerControl1.Start = schedulerStorage.Appointments(0).Start
' 4) Define Insert, Update, Delete commands

See Also

GoToDate

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace