Saturday, February 25, 2012

Delete Table Row if row is blank

Hi All,

I face one problem.

I have one table in .rdlc to display all the sales in that table, but some of the sales is blank and assume there are only two column in table.

So when detect the row for that two column is blank, either the table will skip listing out the blank data or delete that particular row.

How can i do it?

By the way, assume the data we get from database can not filter the blank value.

Thanks

Kendy

In the table layout, you can set the Visible of a row by using the Expression.

=IIF(IsNothing(Column1) AND IsNothing(Column2), False, True)

HTH

|||

Hello Kendy,

Right click on your detail row and go to Properties. Expand Visibility, then enter this in the Hidden property:

=IIf(IsNothing(Fields!Field_1.Value) and IsNothing(Fields!Field_2.Value), True, False)

Remember, this is the hidden property so if they are both empty, you want the hidden property to be set to True.

Hope this helps.

Jarret

|||

Hi Jarret,

Its help and works, thanks.

Kendy

No comments:

Post a Comment