Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
text color change in report
posted

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?

 

 

  • 27093
    posted

    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 Monov
    Developer Support Engineer
    Infragistics Bulgaria
    www.infragistics.com/support

  • 27093
    posted

    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