Xceed DataGrid for Silverlight Documentation
Validate Method (StatFunction)


Validates the statistical function to ensure that it is able to calculate its result.
Syntax
'Declaration
 
Protected Friend Overridable Sub Validate() 
'Usage
 
Dim instance As StatFunction
 
instance.Validate()
protected internal virtual void Validate()
Remarks

By default, only the ResultPropertyName property is validated to make sure that a value has been provided and that it is unique.

When overriding the Validate method in a derived class, the base implementation must be called. If the validation process fails, an exception should be thrown to indicate that the statistical function cannot calculate its result.

If an exception occurs in the Accumulate, AccumulateChildResult, or GetResult methods, it will be caught by a grid and returned as the result of the statistical function. In some cases, such as when the statistical function's required parameters are being validated in the Validate method, the exception will not be caught since if the validation fails the statistical function is not able to calculate its result.

Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

StatFunction Class
StatFunction Members

Send Feedback