Skip to main content

DateEdit.DateTimeChanged Event

Fires after the current date changes.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v25.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event EventHandler DateTimeChanged

Event Data

The DateTimeChanged event's data class is EventArgs.

Remarks

The following code snippet handles the DateTimeChanged event to update a label with the new date:

using DevExpress.XtraEditors;

dateEdit.DateTimeChanged += (sender, e) => {
    DateEdit editor = (DateEdit)sender;
    labelControl1.Text = editor.DateTime.ToString("D");
};

The DateTimeChanged event is equivalent to RepositoryItemDateEdit.DateTimeChanged.

See Also