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
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
Hello Eric,
Have you looked at this approach using IValueConvers?
Well I can see that working for records being loaded in the grid...But what if I want to change the color of a row after the grid is loaded?
I have a Background Worker Polling our Databases and if a certain condition is met, the row will need to change color to be a visual alert to the users that something is possibly wrong.
Thanks for your help man!!!
OK,
I go this working using the IValueConverter.
Thanks for you help again!!!
-Eric