hiya Simon,
Unfortunately my scenario's a bit more complicated.
As you know, I have the following fields:
1) dateOfBirth
2) dateOfdeath
The calculated column can either be:
1) an integer
2) "N/A" (if the dog isn't dead yet.)
I have tried the dataColum expression:
DataColumn dCol = new DataColumn("ageAtDeath");
dCol.Expression = "DateOfDeath.Year - DateOfBirth.Year";
I get an error because the expression doesn't recognise the "year"
Cannot find column [DateOfDeath.Year].
So, I'm stumped at the first hurdle.
Any ideas?
Many thanks,
yogi.