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
320
Conditional formatting
posted

Is there any way I can display the text in a particular cell with Bold text based on the value of another cell in the same row ? I.e I have a IsDefault cell and if this is set tro 1 I would like another cell to be displayed with different formatting.

Many Thanks

Niclas

Parents
No Data
Reply
  • 69686
    Suggested Answer
    posted

    Hello Niclas,

    Yes, it is possible. You should create a style for the CellValuePresenter and use DataTrigger for the Value property of the cell that you want to access. You should set the Path to Cells[namecell"].Value and then use a Setter for the FontWeight property. 

    Please let me know if you need further assistance with this. It should look something like this:

    <Style TargetType="{x:Type igDP:CellValuePresenter}">

                <Style.Triggers>

                    <DataTrigger Binding="{Binding Path=Cells[IsDefault].Value}" Value="1">

                        <Setter Property="FontWeight" Value="Bold"/>

                    </DataTrigger>

                </Style.Triggers>

            </Style>

Children