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

xslt - Substring before throwing error -

Google Cloud Bigtable Durability/Availability Guarantees -

Android M doze mode and "native" posix socket freezing up -