Class CurrentCellValidatingEventArgsBase
Provides data for CurrentCellValidating event.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class CurrentCellValidatingEventArgsBase : GridEventArgs
Constructors
CurrentCellValidatingEventArgsBase(Object)
Initializes a new instance of CurrentCellValidatingEventArgs class.
Declaration
public CurrentCellValidatingEventArgsBase(object originalSource)
Parameters
Type | Name | Description |
---|---|---|
System.Object | originalSource | The source of the event. |
Properties
ErrorMessage
Gets or sets the error message that is used to display the error information in-case of invalid data.
Declaration
public string ErrorMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that is used to notify the type of validation error. |
IsValid
Gets or sets a value that indicates the validation status whether to allow newly entered value for committing.
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 CurrentCellValidated event not raised when the IsValid property set to false.
NewValue
Gets or sets the new value of the cell triggers this event.
Declaration
public object NewValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The new value of the cell. |
OldValue
Gets the old value of the cell triggers this event.
Declaration
public object OldValue { get; }
Property Value
Type | Description |
---|---|
System.Object | The old value of the cell. |
RowData
Gets the data object associated with the row which has cell triggered this event.
Declaration
public object RowData { get; }
Property Value
Type | Description |
---|---|
System.Object | The data object of corresponding data row which has the cell validation occurred. |