Tuesday, August 10, 2010

How to set an alternate row color in SSRS 2005

 I’m going to show you how to set alternate row color in a report that contains data displayed in a table using SSRS 2005
alternate_row_color
First you will have to select the details row in the design mode, then from the Properties panel select the BackgroundColor property and go to edit its Expression, you will find the default value is Transparent, so replace it with this line of code:
=IIF(RowNumber(Nothing) mod 2, "Wheat""White") and click OK
This line of code is telling the SSRS that if the row number was an odd number then make the row background color is White, else make it Wheat.
Run the solution and Have fun with colors.

Saturday, September 19, 2009

Custom MessageBox Control for Silverlight 3

msgBox_error silverlight messagebox msgBox_info silverlight messagebox
In this article, I'll show you how to create a custom messagebox user control in Silverlight 3, so that you can use it in any Silverlight application instead of the default messagebox. I assume that you are familiar with Expression Blend and with its UI.

 

Click here to view my full article on codeproject and get the source code of the project. I’m waiting for your feedback.