Gets or sets a string that specifies which table, stored procedure, or Sql command to use for retrieving the report data.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
[BrowsableAttribute(false)]
public string RecordSource { get; set; }
Visual Basic
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _
<BrowsableAttribute(False)> _
Public Property RecordSource As String
	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. a SqlConnection, or if your application already has the data available in a DataTable object, you can assign the data directly to the Recordset property.

See Also