The problem statement.
I'm using XamDataGrid to display matrix (3x3 for instance) and each cell contains not the simple datatype like String or Int32 but my own complex type DataCell.
DataCell object contains 3 fields -> LocalValue, ServerValue and State.
LocalValue is editable by user, ServerValue is readonly and State could be one of three: Normal, Pending and Error.
My goal to display LocalValue in XamDataGrid and highlight Cell background color depending on the State value.
Could you please advise how is it better to achieve that?
I'm looking at CellValuePresenter style but don't find working solution yet, probably it's a wrong way.
HI,
Here a link on how to represent a complex Properityhttp://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=xamDataPresenter_Displaying_a_Complex_Property.html
Here is a link on how to conditionally format records based on a value in a specified field. http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=10107
Sincerely, Matt Developer Support Engineer