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.
Thank you for your feedback. I believe that other community members may benefit from this as well.
Thanks again.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
That's what I was looking for...
KeepCellStyleOutOfVisibleAreaSample.zip http://es.infragistics.com/community/forums/t/14111.aspx
<Setter Property="Background"> <Setter.Value> <MultiBinding Converter="{StaticResource ValueToBackgroundConverter}"> <Binding RelativeSource="{RelativeSource Self}" Path="Field"/> <Binding RelativeSource="{RelativeSource Self}" Path="Record" /> </MultiBinding> </Setter.Value> </Setter>