CrystalReportViewer.Drill Event
Event fires when a report is drilled down on.
Namespace CrystalDecisions.Windows.Forms Assembly CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)
Syntax
'Declaration
Public Event Drill As CrystalDecisions.Windows.Forms.DrillEventHandler
public event CrystalDecisions.Windows.Forms.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. |
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. This can be by drilling down into a group or chart. It will also occur when an item is selected in the group tree.
Example
This example sets a label to the name of the group that was last drilled into. The action is triggered by the Drill event.
'Declaration
Private Sub CrystalReportViewer_Drill(ByVal source As Object, ByVal e As _
CrystalDecisions.Windows.Forms.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.Windows.Forms Namespace