I have solved it so:
CellValuePresenter cvp1;
foreach (DataRecord record in _myView.MyTable.RecordManager.Unsorted){for (int iWeek = 1; iWeek <= 53; ++iWeek)
{ coolumnValue = string.Format("Cell{0}", iWeek);
if (record.Cells[coolumnValue].Value == null) { continue;}
columnType = string.Format("CellType{0}", iWeek); cvp1 = CellValuePresenter.FromCell(record.Cells[coolumnValue]); if ((int)record.Cells[columnType].Value == 8) { if (cvp1 != null) cvp1.Background = Brushes.LightSalmon; }
......
Hello,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
hmm...
<Setter Property="Foreground"> <Setter.Value> <MultiBinding Converter="{StaticResource totalSalesColorConverter}"> <Binding Path="DataItem.SalesEstimate" /> <Binding Path="DataItem.TotalSales" /> </MultiBinding> </Setter.Value> </Setter>I don't want write 52 Style with different parametersI stay with my version.