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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.