Changing Row Color by specific Condition WPF Datagrid -


i have exact same problem guy:

how change row color in datagridview?

the differenence use wpf. .rows doesnt exist. of have clue how solve this?

i solved this:

private void dganzeigekostenstelle_loadingrow(object sender, datagridroweventargs e)         {             try             {                 if (convert.toint32(((system.data.datarowview)(e.row.datacontext)).row.itemarray[5]) > convert.toint32(((system.data.datarowview)(e.row.datacontext)).row.itemarray[4]))                 {                     e.row.background = new solidcolorbrush(colors.orangered);                 }              }             catch             {             }          } 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -