I'm populating XamDataGrid using DataTables and DataRelations.
I have been struggling for last few hours trying with no luck.
Hello,
Thank you for your post. I have been looking into it. For your first requirement regarding the background of the expanded I can suggest to set a style for the DataRecordPresenter. In the style can be set a trigger for the IsExpanded property, when it is true – the background changes its color.
For your second requirement regarding the background of the certain row I can suggest to handle the SelectionChanged event. In the event handler you can check if the selected record is the one with name ‘Sale-Purchase’, if yes to set its background to transparent.
For your third requirement I can suggest to create a style for the DataRecordCellArea and apply the style for the second FieldLayout.
I have created a small sample for you to be able to see this behavior. Please find the attached sample application and feel free to let me know if you have any further questions on the matter.
I am just checking your progress on the issue that you are having.
If you require any further assistance please do not hesitate to ask.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support