xtrareport - How to change the databinding field of a tableCell based on a condition using script? - Stack Overflow

admin2025-04-18  3

In XtraReport how can I change the databinding field of a tableCell based on the value in another tableCell using the script in the Report designer window?

I want to change the databinding field of a tableCell based on the value in another tableCell. Suppose I Have a tableCell named tableCell44 and the databinding field of tableCell44 is Mark11. If the value in the tableCell22 is NullOrEmpty then I want to set the databinding field of the tableCell44 to Mark22. How can I achieve this using C# script?

Note: tableCell22 is printed first so the script can be written in the BeforePrint of tableCell22.

I know it can be done using the CalculatedField but there are some situations in which I cannot use CalculatedField.

转载请注明原文地址:http://www.anycun.com/QandA/1744924892a89565.html