FlexReport for WinForms | ComponentOne
C1.Win.FlexReport.4.5.2 Assembly / C1.Win.FlexReport Namespace / DataSource Class / MaxRecords Property

In This Topic
    MaxRecords Property (DataSource)
    In This Topic
    Gets or sets the maximum number of data rows to be included in the report (zero includes all rows).
    Syntax
    'Declaration
     
    Public Property MaxRecords As Integer
    public int MaxRecords {get; set;}
    Remarks

    This property is useful if you want to limit the size of a report. For example, you may write a report designer with a preview window that shows only the first 500 records from the database.

    Setting this property to zero causes the control to retrieve all records.

    You can also limit the size of reports by setting the MaxPages property.

    See Also