Page 1 of 1

Condition on CheckBoxControl

Posted: Mon Oct 18, 2010 11:28 am
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.

Condition on CheckBoxControl

Posted: Tue Oct 19, 2010 5:19 am
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.

Condition on CheckBoxControl

Posted: Tue Oct 19, 2010 5:24 am
by Jennypi
Again, thank you very much for your help!

Condition on CheckBoxControl

Posted: Tue Oct 19, 2010 6:03 am
by Alex K.
Hello,

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

Thank you.