How do I give row color and alternate row color for a Table in RDLC report? When I googled I found most of the result says something like = iif(RowNumber(Nothing) mod 2, "Red", "White") OK! But where should I place this stuff? Any help will be appreciated.
How do I give row color and alternate row color for a Table in
Share
Very easy! 🙂
In your report designer surface, you need to select the data row that contains your data – something like this:
When you look at the
Propertiesbox for that data row, you will see a property callBackgroundColor– open the dropdown, and you’ll see all the usual colors – but also a menu item at the bottom calledExpression...:When you select that item, a dialog box will open that allows you to insert an expression to determine the background color for that row – that’s where you need to put that expression that you have – and that’s all there is!