Condition on CheckBoxControl

Stimulsoft Reports.NET discussion
Post Reply
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Condition on CheckBoxControl

Post by Jennypi »

Hi

In a report I would like to display a databand on a condition (checkbox is checked in the starting form). In the condition property of the databand, I selected "expression" and I put :

Code: Select all

CheckBoxControl1.Checked==True
I am getting this error: "The name 'True' does not exists in the current context".
I tried to put quotes but it's not working better.

Could you please help me?

Thank you in advance.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Condition on CheckBoxControl

Post by Alex K. »

Hello,

You can use the following code in condition
VB.NET:

Code: Select all

CheckBoxControl1.Checked = True
C#

Code: Select all

CheckBoxControl1.Checked == true
Thank you.
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Condition on CheckBoxControl

Post by Jennypi »

Again, thank you very much for your help!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Condition on CheckBoxControl

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply