What is a proper syntax for Fields collection in case of Hierarch. Dataset RRS feed

  • Question

  • If I have a dataset with the structure as: 

    (list of class instances, where each instance have properties of "CustomerA" and "CustomerB" as instances of "Customer" class)

    and CustomerA and CustomerB have property "FullName":

    How should I write the proper syntax for FullName value of CustomerA and CustomerB?

        =Fields!CustomerA.FullName.Value        ?
        =Fields!CustomerA("FullName").Value    ?

    By default, when I drop CustomerA.Fullname property on the cell in table report control I am getting =Fields!FullName.Value which is obviously incorrect. At least "obvious" is for me :), but I could be wrong.

    Any help is greatly appreciate
    Sunday, August 24, 2008 3:52 PM