alexa
menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class RowValidatingEventArgs

    Provides data for the RowValidating event.

    Inheritance
    System.Object
    GridEventArgs
    RowValidatingEventArgs
    TreeGridRowValidatingEventArgs
    Inherited Members
    GridEventArgs.OriginalSender
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class RowValidatingEventArgs : GridEventArgs
    Remarks

    You can cancel or customize the row being validated through the RowValidatingEventArgs event argument.

    Constructors

    RowValidatingEventArgs(Object, Int32, Dictionary<String, String>, Object)

    Initializes a new instance of the RowValidatingEventArgs class.

    Declaration
    public RowValidatingEventArgs(object rowData, int rowIndex, Dictionary<string, string> errorMessages, object originalSource)
    Parameters
    Type Name Description
    System.Object rowData

    The data object associated with the row which triggered this event.

    System.Int32 rowIndex

    The index of the row which triggered this event.

    System.Collections.Generic.Dictionary<System.String, System.String> errorMessages

    Contains the error message to notify the validation error.

    System.Object originalSource

    The source of the event.

    Properties

    ErrorMessages

    Declaration
    public Dictionary<string, string> ErrorMessages { get; }
    Property Value
    Type
    System.Collections.Generic.Dictionary<System.String, System.String>

    IsValid

    Gets or sets a value that indicates the validation status that determines whether the newly entered value is allowed to be committed.

    Declaration
    public bool IsValid { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the newly entered value is valid and it commits the new value; otherwise, false. The default value is true.

    Remarks

    The RowValidated event is not raised when the IsValid property is set to false.

    RowData

    Gets the data object associated with the row that triggered this event.

    Declaration
    public object RowData { get; }
    Property Value
    Type Description
    System.Object

    The data item of the corresponding row associated with the event.

    RowIndex

    Gets the index of the DataRow which triggers this event.

    Declaration
    public int RowIndex { get; }
    Property Value
    Type Description
    System.Int32

    The index of the row associated with the event.

    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved