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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -