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?
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...
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.
Hi Travis,
Let me take a look at your sample and see what we can do.
Did you see a Product Idea concerning your requirement?
yes, I did find a new product idea in the reporting area.
I found a previous discussion I found seems to say that it "hiding a row" actually sets the row's visibility to hidden. collapsed is the needed visibility to actually not show the area for the row at all, but collapsed is not an option. so, it seems Hidden=false equates to Visibility.Visible, and Hidden=true equates to Visibility.Hidden, but there is no provision for Visibility.Collapsed.
Has there been any further development on this? That link you posted is broken, now.
I hadn't heard back from you and I was wondering if you had further questions.
Please let me know if I can help further.
Looks like I just responded to you thru the other forum post. It's good that you added your vote to the Product Idea site. That's the best thing to do because our management team does pay attention to the most popular ideas and respond to our customers' requests. As you probably saw that idea is Under Review.
I'll add the Product Idea site so that others interested in this topic can vote as well.
https://es.infragistics.com/community/ideas
Please let me know if there is anything further I can help you with.