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
250
Different Field Labels for every child row
posted

Hello. Some of the rows in my XamDataGrid have child rows. I set the labels of the child rows' fields depending on the parent data records. Is there any way to set different field labels in every child row?

I have attached a screenshot, if it is unclear what i mean with "set different field labels in every child row".

Any help is appreciated.

Parents
  • 34510
    Offline posted

    Hi Freyth,

    You can use the LabelPresenter's ContentTemplateSelector in order to adjust the column header.  Take a look at my attached sample.  Right now I set the column header of the child records to the value of a cell in the parent record.

    DataGridCustomLabelText.zip
Reply Children