A newer version of this page is available. Switch to the current version.

ReportViewer.DataBind() Method

Associates the report defined in markup with ReportViewer.

Namespace: DevExpress.XtraReports.Web

Assembly: DevExpress.XtraReports.v18.2.Web.WebForms.dll


public override void DataBind()
Public Overrides Sub DataBind


The DataBind method is called internally in a ReportViewer's Load event handler.

This is why calling the DataBind method before manually assigning a report to a ReportViewer is required. This cancels the internal call of this method and prevents double execution of its code.

For general information, see ASP.NET Document Viewer.

See Also