c# - How to highlight one or more cells of a row on datagrid rowload in silverlight -
i have following code attached row load event on datagrid :
private void mygrid_loadingrow(object sender, datagridroweventargs e) {     myobject o = e.row.datacontext myobject;     string highlightcolour = ...;      if (o.source == "...")         e.row.background = ...;     else         e.row.background = null; }   the issue in need of highlighting cells in row , not others instead of whole row, how go acheiving that?
you can below
assume need change cell index 1 , 2
 e.row.cells[1].background  = ....  e.row.cells[2].background  = ....      
Comments
Post a Comment