Share via


CrystalReportViewer.Drill Event

Event fires when a report is drilled down on.

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

Syntax

'Declaration

Public Event Drill As CrystalDecisions.Web.DrillEventHandler
public event CrystalDecisions.Web.DrillEventHandler Drill

Event Data

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

Property Description
CurrentGroupLevel Gets the group level that was drilled into.
CurrentGroupName Gets the group name that was drilled into.
CurrentGroupPath Gets the group number and the current group level that was drilled into.
Handled Gets or sets whether the event was handled. Set to True if you do not want the default action to occur.
NewGroupLevel Gets the new group level that is being drilled into.
NewGroupName Gets the new group name that is being drilled into.
NewGroupPath Gets the group number and group level that is being drilled into.

Remarks

This event will be raised when a user drills down into a report, either by drilling down into a group or chart.

Example

This example shows how to set the text of a label to the name of the group that was drilled down on.

'Declaration

      Private Sub MyCrystalReportViewer_Drill(ByVal source As Object, _
         ByVal e As CrystalDecisions.Web.DrillEventArgs) _
         Handles CrystalReportViewer.Drill
      
         Label.Text = e.CurrentGroupName
      
      End Sub 
      private void CrystalReportViewer_Drill(object source, CrystalDecisions.Web.DrillEventArgs e)
      {
         Label.Text = e.CurrentGroupName;
      }

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

CrystalReportViewer Class
CrystalReportViewer Members
CrystalDecisions.Web Namespace