Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Alternating Row colors in a VS 2008 .rdlc table

Alternating Row colors in a VS 2008 .rdlc table

Scheduled Pinned Locked Moved C#
visual-studiocsharphelpquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AeonBlue
    wrote on last edited by
    #1

    So I'm building several reports within my application and I wanted to have the functionality that the visual studio report builder gives me. I'm currently using Report Builder v8.0 because I have to construct for the 2.0 framework. Anyway, here is my problem: I want to do alternating row colors within my table. In the backcolor property I have the function

    =iif(RowNumber("DataSet_GetPersonData") Mod 2, "BurlyWood", "White")

    If I put this in the backcolor property of the table, the rows inherit only the second color, "white." If I put this in the backcolor property of the row instead, I get the desired look (first row brown, second row white, etc) except the first column doesn't inherit either of the colors. Instead it remains transparent. I've modified the scope several times, using "nothing" and "table 1" instead of "DataSet_GetPersonData" getting the same results each time. What the heck am I doing wrong?? :confused: :doh:

    "The shortest distance between two points is under construction" -Noelie ALtito

    A 1 Reply Last reply
    0
    • A AeonBlue

      So I'm building several reports within my application and I wanted to have the functionality that the visual studio report builder gives me. I'm currently using Report Builder v8.0 because I have to construct for the 2.0 framework. Anyway, here is my problem: I want to do alternating row colors within my table. In the backcolor property I have the function

      =iif(RowNumber("DataSet_GetPersonData") Mod 2, "BurlyWood", "White")

      If I put this in the backcolor property of the table, the rows inherit only the second color, "white." If I put this in the backcolor property of the row instead, I get the desired look (first row brown, second row white, etc) except the first column doesn't inherit either of the colors. Instead it remains transparent. I've modified the scope several times, using "nothing" and "table 1" instead of "DataSet_GetPersonData" getting the same results each time. What the heck am I doing wrong?? :confused: :doh:

      "The shortest distance between two points is under construction" -Noelie ALtito

      A Offline
      A Offline
      AeonBlue
      wrote on last edited by
      #2

      UPDATE: Turns out when you are developing web applications you should test your product on browsers that don't begin with Mozilla and end in Firefox. Works fine in I.E. I lose. :(

      "The shortest distance between two points is under construction" -Noelie ALtito

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups