How to set background of a datagrid cell during AutoGeneratingColumn event depending on its value?

后端 未结 3 1695
粉色の甜心
粉色の甜心 2020-12-03 15:29

I\'m still fighting with manipulation of cell backgrounds so I\'m asking a new question.

A user "H.B." wrote that I can actually set the cell style during t

3条回答
  •  离开以前
    2020-12-03 15:40

    I am not sure whether this property (Cell.Style) is available in your WPF Datagrid. Probably some alternative exists in your case. It has worked for WinForms datagrid.

     cell.Style.BackColor = System.Drawing.Color.Black;
    

提交回复
热议问题