Skip to main content
All docs
V26.1
  • DateEdit.DateChanged Event

    Fires after the current date changes.

    Namespace: DevExpress.XtraEditors

    Assembly: DevExpress.XtraEditors.v26.1.dll

    Declaration

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

    Event Data

    The DateChanged event's data class is EventArgs.

    Remarks

    The following code snippet handles the DateChanged event to display the new date:

    using DevExpress.XtraEditors;
    
    dateEdit.DateChanged += (sender, e) => {
        DateEdit editor = (DateEdit)sender;
        this.Text = $"Selected: {editor.DateOnly}";
    };
    

    The DateChanged event is equivalent to RepositoryItemDateEdit.DateChanged.

    See Also