In my Infragistics.Reports.Table, I have one Infragistics.Reports.TableRow that I would like to hide if there is a null or empty string value. I have set the Visible property =IsNullOrEmpty(Fields.Address2), yet the row is still shown even when there is no value. When i expand the Visible property, the DataBinding property is also set to =IsNullOrEmpty(Fields.Address2 and DefaultValue is True.
The table needs to show company addresses, and some companies ie.
Company Name
Address 1
Address 2
City State ZIP
I have included a sample project showing the problem.
Many addresses do not need the Address2 table row, and it looks silly when the row is shown with nothing in it. How can i get the row to hide when there is no value?
apparently you can't do this, i found the new idea being upvoted by nobody doing anything about it. i ended up just using some string formatting and one row instead.
hmm i see my logic was off in the expression. no matter, even if i simply set Visible to False for the row, it still shows the row! I would assume if I changed my visible expression to =If(IsNullOrEmpty(Fields.Address2), False, True) i should get the result i am looking for. This is not the case, and like I said, even simply setting it to false STILL shows the table row anyway! See the updated sample project and you will see the problem. Try setting the Address2 row's visibility to False, it still shows the row, just not text in the row!!! I assume this is a bug, because the same logic seems to work correctly for visibility of the entire table...