1
I’m using VS2013 Entity 5. The situation is as follows:
In a table of Sons, there is an attribute sexFile that receives the value 0, 1. 0 for male and 1 for female. (could use "m" or "f", but it is a learning situation)
In my Datagridview, in the column Sex appear, then, the values 0 and 1. How could I put a condition so that instead of these values, "M" or "F appear"?
dsFilhos.Tables("filhos").Columns("sexoFilho").Expression ="IIF(sexoFilho='0', 'M', 'F')";
I searched on Calc Fields but was not successful. Thank you for your attention!
You can put in your question how is the code so far?
– Leonel Sanches da Silva
Edited code. I’m using that code, but it claims to be a "circular reference"
– Grégori Sória