Hi,
I have two webdatagrids bound to two datatables dt1 and dt2. I am now comparing the rows from dt1 against dt2 and displaying only those rows that are not present in both the datatables(different cell values in certain columns) in a third webdatagrid. I am doing this using
var dt3 = dt1.AsEnumerable().Except(dt2.AsEnumerable(), DataRowComparer.Default);
I would like to achive the following functionality: Colour the cell/column with the non-matching value between the two tables differently. Could you please help me code this in C#?
Hello Sasha,Thank you for submitting your inquiry to the Infragistics ASP forums. The WebDataGrid Columns may be styled using CSS. The following forum post contains a sample written in C# which demonstrates how to set some of the CSS Styles for the WebDataGrid using the code behind:
<http://forums.infragistics.com/forums/p/41967/233658.aspx>Please take a look at the sample and let me know if you have any questions.Thank you.Sincerely,Mike D.Developer Support EngineerInfragisticswww.infragistics.com/support