CrystalReportViewerBase.AutoDataBind Property
Gets or sets whether automatic data binding to a report source is used. If the value is set to True, the DataBind() method is called after OnInit() or Page_Init() events.
Namespace CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)
Syntax
'Declaration
Public Property AutoDataBind As Boolean
public bool AutoDataBind {get; set;}
Example
This example shows how to set the AutoDataBind property in the CrystalReportViewerBase class.
'Declaration
Private Sub SetAutoDataBind()
CrystalReportViewer.AutoDataBind = True
End Sub
private void SetAutoDataBind()
{
crystalReportViewer.AutoDataBind = true;
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports .NET 10
See Also
Reference
CrystalReportViewerBase Class
CrystalReportViewerBase Members
CrystalDecisions.Web Namespace