Share via


Automatic Data Binding to Crystal Reports From the Properties Window

In the report binding scenario Binding to a File Directory Path Through the Properties Window, the report path string that is entered into the Properties window is inserted directly into HTML rather than in the code-behind class.

One of the stated cons of this scenario is that in all previous versions of Crystal Reports, data binding does not occur when the binding value is placed directly into the HTML. Therefore, a call to the DataBind() method of the CrystalReportViewer control must be added manually to the code-behind class.

But in Visual Studio 2005 and later, all control data binding that occurs in the HTML now is automatically data bound. A DataBind() method call in the code-behind class is not required.

Note

Legacy code that includes calls to the DataBind() method should work as normal.