I am trying to change the color of Backgroundmy DataGridcells containing the word "Change".
In WinFormsI did this with this code:
DataGridViewCellStyle style = new DataGridViewCellStyle();
style.BackColor = Color.DarkCyan;
foreach (DataGridViewRow Row in dataGridView1.Rows)
{
if (Row.Cells["Permission"].Value.ToString().Contains("Modify"))
{
Row.Cells["Permission"].Style = style;
}
}
I fill this one DataGridwith DataTable.
I know very little about WPF, so if you have any suggestions please be very specific.
source
share