Hide Detail

I have a Detail with SubDetail (Child Data Band) How do I to Hide SubDetail when datarow is null?

Order (Header) -- (Customer, Date, ...)
-> Order (Detail) -- (Article, Description,...)
-> Order (SubDetail) --- (Size, Quantity, Price)

But some articles has not Size so:

Order (Header) -- (Customer, Date, ...)
-> Order (Detail) -- (Article, Description, Quantity, Price,..)

How can I hide ChildDataBand If article has not Size? Thanks

Comments

  • StarkStark Syria
    edited August 2010
    Hi,

    Add this code to your Report Script

    TxtSize Properties HideZeroes Must be ture , as our code condition will act if TxtSize.Text Empty or NULL
    // This Code Should be placed in your report Script , not in your Application 
     private void TxtSize_AfterData(object sender, EventArgs e)
        {     
             ChildData1.Visible = !TxtSize.Equals(String.Empty);
        }
    


Leave a Comment