Reports for WPF | ComponentOne
C1.C1Report 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 DataSource.ConnectionString specifies the database that contains the report data. The DataSource.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. a 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 DataSource.Recordset property.

    See Also