How to set text background colour in code from data value

Stimulsoft Reports.Silverlight discussion
Locked
MartinB
Posts: 15
Joined: Wed May 02, 2012 11:02 am

How to set text background colour in code from data value

Post by MartinB »

Hi, I am creating a report in code, and I need to be able to set the background colour of a text item based on the value of a data column in the dictionary. I have a text item on the report and I set the text property to the required data column (e.g. {datasource.columnname}), I then want to use this value to set the background colour of another text item. I have tried to use the text BeforePrint and GetValue events and also the databand BeforeRender, but the value of the text item remains as the data column name. I have also tried adding a variable, but this also does not have the value of the data column in the events mentioned.

Can you please help, and suggest how I might achieve this.
Thanks.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to set text background colour in code from data valu

Post by Alex K. »

Hello,

Please try to use the Conditions for this task.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to set text background colour in code from data valu

Post by HighAley »

Hello.

Do you use Native or Client/Server version of Silverlight?

Thank you.
Locked