Browse by Tags
All Tags » Validation Rules (RSS)
Showing page 1 of 2 (13 total posts)
-
Hi james, To return a custom validation message, you’ll need to return new
ValidationResult( false, ''My custom message.'' );in the validation function in the code-behind.
For more information, you may check the example ...
-
I am trying to get custom date validation working on an editable cell.
Using
<xcdg:Column ...
-
Hello,
Let's get directly into the problem. I want to validate a row calling explicitly the ''Validate'' method of the CellEditorManager or override its ''ValidateCore'' method but I can't it neither on CellEditors nor Column objects in the WPF assembly Xceed.WPF.DataGrid . How can I force the validation of a complete DataRow when a cell content ...
-
Hi
I am trying to implement a CellValidationRule that will throw an error if a duplicate entry exists in the grid already.
The problem is that within my custom validation method, the thrid parameter ''CellValidationContext context'' refers to a cell, and i can not gain access to the grid control from this object.
I can get the ...
-
Hi,
We are currently using xceed v3.1.9175.12000, and i am trying to implement a custom CellValidationRule by adding the custom class to a column's CellValidationRules collection.
The validation is only fired when the user moves away from that cell. However when i observe the standard behaviour of an xceed rule (e.g ...
-
Is there an easy way to disable validation within the entire datagrid when bound to objects that implement IDataErrorInfo?
-
Hello,
I have a column which I would like to validate with custom validation rule. I've found EventCellValidationRule class in documentation and created a derieved class:
public class AttributeValueValidationRule : EventCellValidationRule
{
public override ValidationResult Validate(object value, CultureInfo cultureInfo,
...
-
I need to display the cell error text in a textblock above the grid, how do I databind to it? Is there a way to get all the data errors in a row?
-
Here you are the code. The highlighted code is the line where the Stack Overflow exception is thrown (because the validation rule executes once and once again when the underlying data is changed) :
public override ValidationResult Validate(object value, CultureInfo cultureInfo, CellValidationContext cellValidationContext)
{
int ...
-
Hi, I got a stack overflow in the validation after upgrading to 3.1. The validation rule changes the underlying dataset through the cellValidationContext.DataItem, and with this new version every change to this raises the execution of validation rule again, resulting in a stack overflow exception. This behaviour doesn't happen in the 2.0 version ...
1
|
|
|
|