Page 1 of 1

Can I do conditional coloring with stimulsoft?

Posted: Tue Apr 20, 2021 6:57 am
by ynsemratk
I have a column named "Adi" in my data source. This column is of string type. If the value in the previous "Name" column is the same as the next value, I want to make the style color of those columns red. How can I do? I sent my report to you. Thank you.

Re: Can I do conditional coloring with stimulsoft?

Posted: Tue Apr 20, 2021 9:42 pm
by Lech Kulikowski
Hello,

Please send us a test data for your report and the necessary result, we will try to find a solution for you.

Thank you.

Re: Can I do conditional coloring with stimulsoft?

Posted: Wed Apr 21, 2021 7:43 am
by ynsemratk
When the "Adi" column is the same, let the color be the same as in the pdf file I sent.sorry i don't know english very much. I hope you understand.

Re: Can I do conditional coloring with stimulsoft?

Posted: Wed Apr 21, 2021 7:45 am
by ynsemratk
when the column that says "ÜRÜN ADI" in the report is the same.

Re: Can I do conditional coloring with stimulsoft?

Posted: Fri Apr 23, 2021 9:55 pm
by Lech Kulikowski
Hello,

You can use the following expression in the Condition:
(PreviousIsNull(new_table,"Adi") ? false : new_table.Adi == Previous(new_table,"Adi").ToString()) || (NextIsNull(new_table,"Adi") ? true : new_table.Adi == Next(new_table,"Adi").ToString())

Thank you.