CrystalReportViewer.Navigate Event

Event fires when the user navigates through a report.

Namespace CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)



Public Event Navigate As CrystalDecisions.Web.NavigateEventHandler
public event CrystalDecisions.Web.NavigateEventHandler Navigate

Event Data

The event handler receives an argument of type NavigateEventArgs containing data related to this event. The following NavigateEventArgs properties provide information specific to this event.

Property Description
CurrentPageNumber Gets the current page number.
GroupPath Gets the group path.
Handled Gets or sets whether the event was handled. Set to True if you do not want the default action to occur.
NewPageNumber Gets the page that is being navigated to.


This event will be raised when a user navigates through a report, either by going to a new page or using the group tree to go to move through the report.


This example shows how to set the text of a label to the page number that was navigated to.


      Private Sub CrystalReportViewer_Navigate _
         (ByVal source As Object, _
         ByVal e As CrystalDecisions.Web.NavigateEventArgs) _
         Handles CrystalReportViewer.Navigate
         Label.Text = e.NewPageNumber
      End Sub
      private void crystalReportViewer_Navigate(object source, CrystalDecisions.Web.NavigateEventArgs e)
         Label.Text = e.NewPageNumber.ToString();

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also


CrystalReportViewer Class
CrystalReportViewer Members
CrystalDecisions.Web Namespace