Hi I need to add a template field in XamDataGrid which binds to three properties. The Header also needs to be modified to Show Two Rows like Below. Can you please help on how to acheive this ?
Payment Counter
30 | 60 | 90 -> Header(Should be in two lines )
--------------------------------
0 1 2 -> Field Data ( single field bound to three properties)
I want to achieve something like below using XamDataGrid:
My datasource will have exactly one row which I want to bind to the XamDataGrid. The "Label" values are static and the "Value" are bound to the datasource.
I want the datagrid to be rendered like above illustration.
Any help is highly appreciated.
Hello,
I am very glad that the approach that I have suggested was helpful. Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Works great for me. Thanks so much
Thank you your post. I have been looking into it and I can suggest using an UnbondField in order to dispay values of three properties. To do that you can create a style for the CellValuePresenter and set its Template. In the template you can access the Record and its DataItem and you can bind to any of the properties of the record. For the header you can create a Style for the LabelPresenter and set its ContentTemplate in order to have the appearance that you are looking for. I have created a sample application that demonstrates the mentioned approach.
Please let me know if you need any further assistance on the matter.