Highlighting a row once a parameter has been selected in SSRS

  • I have a report that has 3 parameters, RaceDate, RaceCourse, SilksColours but the SilksColours parameter is optional, but if the SilksColours is selected I just want to highlight the row in my report with the colour yellow but all the other rows stay white.

    Is this possible?

    Thanks

    W

  • It is not possible to assign formatting to an entire row with a single property. However, you can select all the text boxes that make up the row and then use the Property pane to edit the BackgroundColor property of all of them at once. You would choose the "Expression" option and then enter an expression such as the following:

    = If(Parameters!SilksColours.Value = Fields!SilksColours.Value, "Yellow", "White")

    That code assumes the name of the dataset field is the same as the name of the parameter. If not, adjust as appropriate.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply