Where is write function in Checkbox?

Stimulsoft Reports.NET discussion
Post Reply
MARIMUTHU K
Posts: 101
Joined: Wed Jul 26, 2006 8:03 am
Location: CHENNAI-TN, INDIA

Where is write function in Checkbox?

Post by MARIMUTHU K »

Hi Edward,

We r using .Net2007.3
we want display check and cross(Checkbox style) using different condition.


Now we wrote one function in checkbox control checked function property

if(({Table3.meal_type}=="Lunch") && ({Table3.is_meal_participated_in}==true ))
CheckBox34.Checked=true;
CheckBox34.CheckStyle=check;
else
Text13.Text="hai";

but didn't fire above function.

So, Please help us
Where is write code or How is write that code?

Its urgent help.


Thanks in Advance,


Marimuthu K
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Where is write function in Checkbox?

Post by Edward »

KMarimuthu wrote:we want display check and cross(Checkbox style) using different condition.

Now we wrote one function in checkbox control checked function property

if(({Table3.meal_type}=="Lunch") && ({Table3.is_meal_participated_in}==true ))
CheckBox34.Checked=true;
CheckBox34.CheckStyle=check;
else
Text13.Text="hai";

but didn't fire above function.
In the GetCheckedEvent of the StiCheckBox, please write the following code:

if(some condition) e.Value = "true"; else e.Value = "false";

CheckBox's style can be changed with the following code:

CheckBox1.CheckStyleForTrue = StiCheckStyle.Check;
CheckBox1.CheckStyleForFalse = StiCheckStyle.Cross;

Here is the list of styles available:
public enum StiCheckStyle
{
Cross,
Check,
CrossRectangle,
CheckRectangle,
CrossCircle,
DotCircle,
DotRectangle,
NoneCircle,
NoneRectangle,
None
}

Thank you.
Post Reply