Control the order of calculation for fields with expressions

c#, VS2005

My DataTable is having several 'calculated/expression' fields. Is there a way to control the order of calculation so that i would be able to use a calculated field in another, but be sure that field x is calculated before being used in field y.

Kind Regards

Harry



Answer this question

Control the order of calculation for fields with expressions

  • vanphuoc

    No, i defined my calcutions in such a way that if he starts at the bottom of the tree they will be working. I just wanted to check if there was a way to be 100% sure that it was working.

    Now it works and calculations are correct, but there is nog guaranty.

    Kids Regards


  • Sneh Mani Tripathi

    For every expression (column), a list of dependencies is computed. (we need to do this anyways to avoid circular dependencies).

    When expressions are being computed, we will also calculate any dependent column.

    If you find a case where that does not happen let us know,

    --VV [MS]
    vascov@microsoft.com


  • Yoway Buorn

    As I know there is no way to control it. I would expect that calculations suppose to start from the *bottom* of the calculation tree. Do you have any specific issues

  • Control the order of calculation for fields with expressions