Share via


CrystalReportPartsViewer.FieldDrillDown Event

Event fires when a chart is drilled down on.

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

Syntax

'Declaration

Public Event FieldDrillDown As CrystalDecisions.Web.DrillDownEventHandler
public event CrystalDecisions.Web.DrillDownEventHandler FieldDrillDown

Event Data

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

Property Description
DataContext Gets the data sub tree of the report.
GroupName Gets the name of the group that the user has drilled down on. For example, "USA".
GroupPath Gets the path of the group the user has drilled down on.
Handled Gets or sets whether the event was handled. Set to True if you do not want the default action to occur.
ObjectName Gets the name of the object the user has drilled down on.

Remarks

This event will be raised when a user drills down into a chart.

Example

This example demonstrates how to set a label's text to the data returned by the chart drilldown event.

'Declaration

      Private Sub CrystalReportPartsViewer1_ChartDrillDown _
         (ByVal source As Object, _
         ByVal e As CrystalDecisions.Web.DrillDownEventArgs) _
         Handles CrystalReportViewer1.ChartDrillDown
      
         Label1.Text = "DataContext: " + e.DataContext + _
            " GroupName: " + e.GroupName + " GroupPath: " + e.GroupPath + " _
            ObjectName: " + e.ObjectName
      
      End Sub 
      private void CrystalReportPartsViewer1_ChartDrillDown
         (object source, CrystalDecisions.Web.DrillDownEventArgs e)
      {
         Label1.Text = "DataContext: " + e.DataContext +
            " GroupName: " + e.GroupName + " GroupPath: " + e.GroupPath + 
            " ObjectName: " + e.ObjectName;
      }

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports .NET 9

See Also

Reference

CrystalReportPartsViewer Class
CrystalReportPartsViewer Members
CrystalDecisions.Web Namespace