I have a xamdatagrid with datasource a bound to a table.defaultview and it works ok but I've played around with some style setting such as centering in a column and text color (neither of which I can get to work like I want) BUT...the issue is this..if I have some datapresenter style in the xaml for my grid as below I see it work to some degree when the datagrid is displayed on my control but when I send it to the xamreportpreview and print it the color for the text is gone and things seem to revert back to not have the style applied....Is there something I need to do to force the style at some later time as the bound table is refreshed or something?
<
igDP:XamDataGrid.Resources>
<Style TargetType="{x:Type igDP:CellValuePresenter}" ><Setter Property="Foreground" Value="{Binding Path=Cells[3].Value, Converter={StaticResource textColorConverter}}"/>
</Style>
Hello,
I am just checking if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
I have created a sample application that demonstrates using the XamReportPreviewer in order to generate preview of the XamDataGrid. I have added a Style for the CellValuePresenter similar to the style that you have posted. The XamReportPreviewer displays the XamDataGrid with the style for the CellValuePresenrter. I have attached the sample application and also attached a screenshot of the behavior that I am getting.
Please let me know if you can reproduce the same behavior using the sample application that I have attached, or I have misunderstood you in any way.
Looking forward to hearing from you.