I have a report with 7 columns from a xamgrid and I'd like for one of the columns to show up as red text instead of black.
I alter some of the labelwidth and cellwidth etc in the fieldlayout initialized event.
How can I go about setting a different text color for one column?
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.
Sincerely,Petar MonovDeveloper Support EngineerInfragistics Bulgariawww.infragistics.com/support
Hello Loreta,
I have been looking into your issue and can suggest setting the specified Field’s FieldSettings’ CellValuePresenterStyle property like so:
<igDP:Field Name="name" >
<igDP:Field.Settings>
<igDP:FieldSettings>
<igDP:FieldSettings.CellValuePresenterStyle>
<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="Foreground" Value="Red" />
</Style>
</igDP:FieldSettings.CellValuePresenterStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
This will also reflect in your report. You can also set a similar style for the XamEditor that is used inside the CellValuePresenter using the EditorStyle property.
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support