StiText Condition

Stimulsoft Reports.WEB discussion
Post Reply
reham
Posts: 5
Joined: Wed Jun 26, 2013 8:49 am

StiText Condition

Post by reham »

I want to add StiCondition to StiText from the code c# but it isn't work.
code:
StiCondition highlightcond = new StiCondition();
highlightcond.DataType = StiFilterDataType.Numeric;
highlightcond.TextColor = Color.Red;
highlightcond.Column = "{dt." + ColumnName + "}";
highlightcond.Condition = StiFilterCondition.EqualTo;
highlightcond.Value1 = "1";
highlightcond.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
highlightcond.BackColor = Color.Beige;
highlightcond.Enabled = true;
txtColValue.Conditions.Add(highlightcond);
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StiText Condition

Post by HighAley »

Hello.

Please, try to use next code:

Code: Select all

highlightcond.Column = "dt." + ColumnName;
Thank you.
reham
Posts: 5
Joined: Wed Jun 26, 2013 8:49 am

Re: StiText Condition

Post by reham »

Thanks alot for your help, it works :)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StiText Condition

Post by HighAley »

Hello.

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

Thank you.
Post Reply