This example shows a custom function that evaluates the standard deviation (similar to the “stdev” function available in Microsoft SQL) for use in a SELECT query.
A custom function implements the following interfaces:
The static CriteriaOperator.RegisterCustomFunction method registers a custom function in this example.
For convenience, the custom function implements a static Register
method that registers the function. Call this method at application startup.
After registration, you can use the function as part of an SQL statement. The custom function appears in the Query Editor function list among other functions.
See also: Expression Editor - How to implement a custom New Line and Format functions.
- Form1.cs (VB: Form1.vb)
- StDevOperator.cs (VB: StDevOperator.vb)
(you will be redirected to DevExpress.com to submit your response)