Class DataValidation
Provides methods that support data validation.
Inheritance
System.Object
DataValidation
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public static class DataValidation : Object
Methods
GetPropertyValue(Object, String)
Gets the value of property.
Declaration
public static object GetPropertyValue(object obj, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to get property value. |
System.String | propertyName | The name of property to get its value. |
Returns
Type | Description |
---|---|
System.Object | Returns the corresponding property value. |
Validate(GridCell, String, Object)
Validates the value of current cell.
Declaration
public static bool Validate(GridCell currentCell, string propertyName, object dataModel)
Parameters
Type | Name | Description |
---|---|---|
GridCell | currentCell | The current cell that is to validated. |
System.String | propertyName | The propertyName. |
System.Object | dataModel | The dataModel. |
Returns
Type | Description |
---|---|
System.Boolean | true if the validation is successful; otherwise, false. |