DataGrid cell highlight problem


i have 2 datagrid both datagrid have same number , name of column

now problem when datagrid loded want hightlight cell have diffrent value in cell.

in both grid data may same or diff.

how achieve ?

hi,

you can add rowloading event each datagrid.

inside event, can use e.row.getindex() current row index , in itemsource current value. use loop loop throught items in datagrid2 , check if there equals current one. if cannot find one, can use e.row.background = new solidcolorbrush(colors.yellow) highlight it.

 

hope helps



Silverlight  >  Designing with Silverlight



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........