views:

226

answers:

1

Hi.

How to display an Enumeration Value in Microsoft reporting based on the byte column from a DataTable?

I want to cast

=Fields!Status.Value

to something like (MyEnum)Fields!Status.Value

and then call .ToString() on it. Status is a Byte type.

A: 

Ok I made it this way (this is what I've inserted directly into the table cell):

=Switch(
Fields!status.Value=0, "NotStarted",
Fields!status.Value=1, "InProgress",
Fields!status.Value=2, "Completed",
Fields!status.Value=3, "Deferred"
)
PaN1C_Showt1Me