I have two columns in a datagrid that currently display a number (int) based on the results from a stored procedure. The numbers in that column, however, are actually matched up to an enum I have defined elsewhere. What I would like to do is be able to show the text equivalent of the enum instead of the number. So, for example, if I have an enum as:
Alpha = 1,
Beta,
Delta,
Gamma
and a column of results that look like:
1
3
2
2
the column in the datagrid should display:
Alpha
Delta
Beta
Beta
I hope I'm being concise and clear enough in my question.
Thank you in advance.
Alpha = 1,
Beta,
Delta,
Gamma
and a column of results that look like:
1
3
2
2
the column in the datagrid should display:
Alpha
Delta
Beta
Beta
I hope I'm being concise and clear enough in my question.
Thank you in advance.