Unplanned
Last Updated: 21 Nov 2019 14:32 by ADMIN
Alex Dybenko
Created on: 21 Nov 2019 14:22
Category: GridView
Type: Bug Report
1
RadGridView: Expressions with TRIM condition throw an exception if set programmatically

If you want to use Conditional Formatting via code (expression based formatting) you will see that it throws an exception if you set TRIM() condition.

ExpressionFormattingObject expressionCondition = new ExpressionFormattingObject(
expressionCondition.Expression = "TRIM(ContactName) = 'Maria Anders'";
expressionCondition.CellBackColor = Color.Aqua;
this.radGridView1.Columns["CustomerID"].ConditionalFormattingObjectList.Add(expressionCondition);

There is no exception if you use the same condition via "Conditional Formatting Rules Manager" form.

0 comments