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

In This Topic
    RecordSource Property (DataSource)
    In This Topic
    Gets or sets a string that specifies which table, stored procedure, or Sql command to use for retrieving the report data.
    Syntax
    'Declaration
     
    Public Property RecordSource As String
    public string RecordSource {get; set;}
    Remarks

    The ConnectionString specifies the database that contains the report data. The RecordSource property specifies which table, stored procedure, or Sql command to use for retrieving the data.

    If you want to use a different type of connection (e.g. System.Data.SqlClient.SqlConnection, or if your application already has the data available in a System.Data.DataTable object, you can assign the data directly to the Recordset property.

    See Also