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
225
Colour cells differently
posted

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#?

Parents
No Data
Reply Children
No Data