Posted 15 September 2025, 2:33 am EST
Hi,
how can i set the Expression of a rule like this:
rule.Expression = [Column]=“” OR Nothing
Currently i use this, but when thel Column Cell has nothing it doesn work
.Expression = “[Column]=”“”“”
Thanks
Forums Home / ComponentOne / WinForms Edition
Posted by: santer.p75 on 15 September 2025, 2:33 am EST
Posted 15 September 2025, 2:33 am EST
Hi,
how can i set the Expression of a rule like this:
rule.Expression = [Column]=“” OR Nothing
Currently i use this, but when thel Column Cell has nothing it doesn work
.Expression = “[Column]=”“”“”
Thanks
Posted 16 September 2025, 1:50 am EST
Hello,
You can check for nulls as follows:
rule.Expression = "[Name] = \"\" OR [Name] = Nothing";
Please refer to the attached sample for implementation. (see RulesManager_Sample.zip)
Regards,
Uttkarsh.