Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
725
Changed header based on parent data binding.
posted

Hi

I have a multi (3) level of xamDatagrid. In which , in 2nd level i want to bind header label content based on data Item i mean dynamically.

For example : binding collection of 2nd level if of "Input" Type So header lable -> Input

or of "Output" Type So header lable -> Output

please see attached screenshot.

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Adit,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created a Style for the LabelPresenter and bound its Tempalte’s TextBlock to the parent record’s value. I also used a converter in order to return the correct value. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamDataGridHeaderBasedOnParentData.zip
Children