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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -