We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to validate an Expression

Hi,

I am tring to add a column with a expression dynmaically to gridgroupingcontrol.
Since its dynamic user is spesifing the expression dynamincally. So it could be invalid expression. When this happen no expception is thrown but data and the gridgroupingcontrol become unresponsive.

Is there away to check the validiy of the expression before bunding it to the controls.

Thanks

Tharindu


1 Reply

AD Administrator Syncfusion Team August 8, 2007 07:48 PM UTC

If you have a string you want to test as being a valid expression, you can use the grid.TableDescriptor.ExpressionFieldEvaluator.IsExpressionValid method to do so.

Loader.
Live Chat Icon For mobile
Up arrow icon