Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview.DataBinding Namespace / C1DataBinding Class
Properties Methods


In This Topic
    C1DataBinding Class Members
    In This Topic

    The following tables list the members exposed by C1DataBinding.

    Public Properties
     NameDescription
    Public PropertyGets or sets the data source associated with the current data binding.

    Currently objects of the following types can be assigned to this property:

    If the data source is an Expression, that expression must evaluate to an instance of a System.Collections.IEnumerable or a DataSet.  
    Public PropertyGets a value indicating that the current data binding is not empty and is linked to some data.  
    Public PropertyGets the C1.C1Preview.C1PrintDocument object containing the current data binding.  
    Public PropertyGets the collection of data fields for the current data binding.  
    Public PropertyGets the collection of expressions that are used to filter the data retrieved by the current data binding.  
    Public PropertyGets the Grouping object that determines how data retrieved by the current data binding is grouped.  
    Public PropertyGets the flags indicating the mode of the current data binding.  
    Public PropertyGets or sets the name of the current C1DataBinding. That name can be used in aggregate functions to indicate which data binding the aggregate refers to.  
    Public PropertyGets or sets a string defining the Expression used to generate the outline caption for objects produced by the current data binding.

    For instance, if a render object is data bound to a data source that contains a field "CustomerName", setting this property to "Customer: [Fields!CustomerName.Value]" will generate an outline node similar to "Customer: John Doe" for each generated instance of the render object.

     
    Public PropertyGets the C1DataBinding object which is the parent of the current data binding.  
    Public PropertyGets 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.

     
    Public PropertyGets the current row or group instance number (see remarks).  
    Public PropertyGets the Sorting object that determines how data retrieved by the current data binding is sorted.  
    Top
    Public Methods
     NameDescription
    Public MethodAssigns (copies) properties from another C1DataBinding to the current object.  
    Public MethodTests whether the current data binding object is a parent (or a grand- or a deeper-level parent) of another object.  
    Top
    Protected Methods
     NameDescription
    Protected MethodTests whether the Fields property should be serialized.  
    Protected MethodTests whether the Grouping property should be serialized.  
    Protected MethodTests whether the Sorting property should be serialized.  
    Top
    See Also