menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ValidatingEventArgs - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ValidatingEventArgs

    Provides data for the ValidatingEventArgs event of the SfDateTimeEdit control.

    Inheritance
    System.Object
    ValidatingEventArgs
    Namespace: Syncfusion.WinForms.Input.Events
    Assembly: Syncfusion.SfInput.WinForms.dll
    Syntax
    public class ValidatingEventArgs : CancelEventArgs

    Constructors

    ValidatingEventArgs(Boolean, String)

    Initializes a new instance of the ValidatingEventArgs class.

    Declaration
    public ValidatingEventArgs(bool isError, string errorMessage)
    Parameters
    Type Name Description
    System.Boolean isError

    Update whether the given date time is error

    System.String errorMessage

    Update the cause of the error.

    Properties

    ErrorMessage

    Gets or sets the error message to show on the validation failed in DateTimeValidating event.

    Declaration
    public string ErrorMessage { get; set; }
    Property Value
    Type
    System.String

    IsError

    Gets or sets a value indicating whether the given date time is error.

    Declaration
    public bool IsError { get; set; }
    Property Value
    Type
    System.Boolean
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved