Hide a childband

Hi NG,

Is it possible to hide a childband? I tried it this way, but it does't work because all childband get invisible!


childband1.visible := false

huby

Comments

  • edited 7:27PM
    Yes, your need to change parent property Child. if you need hide set it in nil, if show Child = childband1. For sample:
    if <Line#> = 4 then
    MasterData1.Child := nil
    else
    MasterData1.Child := Child1
  • edited 7:27PM
    Thanks for your answer.

    I found the solution to this problem. First in Delphi I've to get the access to all the childbands I want to include/show and exclude/hide.

    [code]
    var cb1, cb2 ??¦: TfrBandView;
    ??¦
    cb1 := FindObject('childband1') as TfrBandView;
    cb2 := FindObject('childband2') as TfrBandView;
    ...
    wrote:

    Then I can concatenate the childbands
    cb1.ChildBand := cb2.Name; ??¦

    ??¦ and it works fine! ;)
  • edited 7:27PM
    Sorry, I used the wrong buttons to code my examples! ;)

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.