Hi Support,
I have one requirement: for one column in xamdatagrid, if there are different values in row,s then hilight the column. I tried to use CellValuePresenterStyleSelector but it could only get the datarow not the column. Please suggest.
thanks,Eric
Hello Eric,
I am just checking if you have any further questions on this matter. Please do not hesitate to let me know if you do.
Thank you for your post!
I have been looking into your issue and have created a small sample application for you. In the sample I have a simple XamDataGrid bind to a collection. In the Field with name "FirstValue" I have integer values. In the resources of the XamDataGrid I have created a style for the CellValuePresenter. There I bind the background property of the CellValuePresenter to the value of the FirstValue field and set a converter too.
In the converter I check if the value of the cell is different than 100. If it is I return a Red color for this cell.
Please find the attached sample application and feel free to let me know if you have any further questions on this matter.