Detail Data should be given white and yellow back ground for each row(back ground color expression.)

  • How can i set the background expression in the code for generating the RDL dynamically

    i tried this

    writer.WriteElementString("BackgroundColor", "=IIf(Mod(RowNumber,2)=1,'White','PaleGoldenrod)");

    but this is not applied to all my columns.

    It says the expression contains error.

    Please let me know how i can set the back ground color expression.

  • Hi...

    Please try this...expression...

    =IIf(RowNumber(Nothing) Mod 2 = 0, "Color1","Color2") Or

    =IIf(RowNumber("DataSet1") Mod 2 = 0, "Color1","Color2")

    Thanks...

    Niraj

  • Hi...

    Please try this...expression...

    =IIf(RowNumber(Nothing) Mod 2 = 0, "Color1","Color2") Or

    =IIf(RowNumber("DataSet1") Mod 2 = 0, "Color1","Color2")

    Thanks...

    Niraj

  • Hi...

    Please try this...expression...

    =IIf(RowNumber(Nothing) Mod 2 = 0, "Color1","Color2") Or

    =IIf(RowNumber("DataSet1") Mod 2 = 0, "Color1","Color2")

    Thanks...

    Niraj

Viewing 4 posts - 1 through 3 (of 3 total)

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