MindFusion WinForms Programmer's Guide
DataRangeSection Class
Remarks See Also
 





Represents a data range header or footer.

Namespace: MindFusion.Reporting
Assembly: MindFusion.Reporting

 Syntax

C#  Copy Code

public class DataRangeSection : ItemContainer

Visual Basic  Copy Code

Public Class DataRangeSection
    Inherits ItemContainer

 Remarks

When working with the MindFusion.Reporting Designer you don't have to worry about creating instances of this class and assigning them to the appropriate DataRange properties.

If you want to create a header or footer for a DataRange object through code, you have to instantiate from this class and assign the instance to the Header or Footer property of the DataRange object respectively. You can add items to the header or footer through its Items property.

 Example

The following example demonstrates how to create a header for an existing DataRange object:

C#  Copy Code

DataRangeSection header = new DataRangeSection();

Label headerLabel = new Label();
headerLabel.Text = "Header Text";

header.Items.Add(headerLabel);

dataRange1.Header = header;

Visual Basic  Copy Code

Dim header As New DataRangeSection()

Dim headerLabel As New Label()
headerLabel.Text = "Header Text"

header.Items.Add(headerLabel)

dataRange1.Header = header

 Inheritance Hierarchy

System.Object
    System.MarshalByRefObject
        System.ComponentModel.Component
            MindFusion.Reporting.ReportItem
                MindFusion.Reporting.ItemContainer
                    MindFusion.Reporting.DataRangeSection

 See Also

DataRangeSection Members
MindFusion.Reporting Namespace