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
30
Change Background Color for child record (based on value)
posted

I have an XAMDataGrid that is bound to a custom data object that has a hierarchial structure. The grid displays these reslts just fine.

I need to be able to change a specific row's (child) background color.

I understand that I can use the XMAGrid.FiledLayouts[1] (this would by child record) to change the color :

drec.FieldLayout.DataPresenter.FieldLayout[1].Settings.DataRecordCellAreaStyle= mystyle;

The problem I am having is that all the child rows get updated with the certain color. I know there is a way to update just a specific child row, but can't seem to nail it down.

Any help would be much appreciated!!

Thanks,

Eric