PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.5.2 Assembly / C1.C1Preview.DataBinding Namespace / C1DataBinding Class / ParentOutline Property

In This Topic
    ParentOutline Property (C1DataBinding)
    In This Topic
    Gets or sets the parent outline node.

    This allows to establish hierarchy of outline nodes for data-bound render object. For instance, the following code: C1PrintDocument doc = new C1PrintDocument(); RenderTable rtbl = new RenderTable(); doc.Body.Children.Add(rtbl); doc.Outlines.Add(new OutlineNode("Document root", rtbl)); // set up data binding for rtbl.RowGroups[0,1]... rtbl.RowGroups[0, 1].DataBinding.DataSource = myDataSource; rtbl.RowGroups[0, 1].DataBinding.OutlineText = "Customer: [Fields!CustomerName.Value]"; rtbl.RowGroups[0, 1].DataBinding.ParentOutline = doc.Outlines[0]; will add outlines to the data-bound rows of 'rtbl', and will make those outlines children of the 'Document root' outline node.

    Syntax
    'Declaration
     
    Public Property ParentOutline As OutlineNode
    public OutlineNode ParentOutline {get; set;}
    See Also