Null values

Stimulsoft Reports.NET discussion
Post Reply
Praveen
Posts: 5
Joined: Thu Jan 21, 2010 10:50 pm
Location: Bangalore

Null values

Post by Praveen »

Hi Friends

I am fetching a column from a database table which has null values also.
when i am showing it in a report it shows blank space instead of null.
now i want to replace all blank spaces in the report with a string and all the notnull values with another string.

Please help when i am using a condition string i am getting only not null values.

Regards
Praveen
spnvelvet
Posts: 35
Joined: Mon Jan 11, 2010 11:59 am

Null values

Post by spnvelvet »

Tell me what you are typing in condition
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Null values

Post by Edward »

Hi

Please use the following expression in the Text property:

{datasource["columnname"] == DBNull.Value ? "empty" : datasource.columnname.ToString() }

Thank you.
Post Reply