c# - Changing reportviewer values in code -
I have an integer value stored in my database representing the document status.
I want to write the report that shows the situation in one of the columns.
However, I do not want to show the raw integer value in the column. I want to show a string that turns the situation into a human-readable format.
Example:
1 - & gt; New 2 - & gt; Pending 3 - & gt; Sent It looks as if it needs more than one expression - that is: Is the C # code possible?
You can also solve the problem using the case in the query that you use to choose .
Select position when = 1 then 'new' when position = 2 then 'pending' when condition = 3 then "status" as "sent" as "status" ... ;
Comments
Post a Comment