Class RowValidatingEventArgs
Provides data for RowValidating event.
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class RowValidatingEventArgs : GridEventArgs
Constructors
RowValidatingEventArgs(Object, Int32, Dictionary<String, String>, Object)
Initializes a new instance of 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 . |
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
Gets or sets the error message that is used to display the error information in-case of invalid data when mouse over on GridCell of particular column.
Declaration
public Dictionary<string, string> ErrorMessages { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | The dictionary that holds the column name as its key and the error message as its value to notify the error. |
IsValid
Gets or sets a value that indicates the validation status whether to allow the newly entered value for commuting.
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. |
Remarks
The RowValidated event is not raised when the IsValid property set to false.
RowData
Gets the data object associated with the row triggered this event.
Declaration
public object RowData { get; }
Property Value
Type | Description |
---|---|
System.Object | The data item of corresponding row associated with the event. |
RowIndex
Gets or sets the RowIndex of 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. |