Class DataGridRowValidatingEventArgs
Provides data for the RowValidating event.
Inheritance
System.Object
DataGridRowValidatingEventArgs
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridRowValidatingEventArgs : EventArgs
Constructors
DataGridRowValidatingEventArgs(Object, Int32, Dictionary<String, String>)
Initializes a new instance of DataGridRowValidatingEventArgs class.
Declaration
public DataGridRowValidatingEventArgs(object rowData, int rowIndex, Dictionary<string, string> errorMessages)
Parameters
Type | Name | Description |
---|---|---|
System.Object | rowData | The underlying data for the row. |
System.Int32 | rowIndex | The row index. |
System.Collections.Generic.Dictionary<System.String, System.String> | errorMessages | The dictionary to store error messages. |
Properties
ErrorMessages
Gets or sets the error messages for the columns in particular row.
Declaration
public Dictionary<string, string> ErrorMessages { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | Returns the error messages for the columns in particular row. |
Remarks
Add key value pair where key is mapping name of the column and the value is error message.
IsValid
Gets or sets a value that indicates whether the validation for the current row is successful or not.
Declaration
public bool IsValid { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Returns true if the validation is successful; otherwise, false. |
RowData
Gets or sets the underlying data object for row.
Declaration
public object RowData { get; }
Property Value
Type | Description |
---|---|
System.Object | Returns the underlying data object for row. |
RowIndex
Gets or sets the row index.
Declaration
public int RowIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Returns the row index. |