DrillDownEventArgs.DataContext Property
Gets the data sub tree of the report.
Namespace CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)
Syntax
'Declaration
Public Property DataContext As String
public string DataContext {get; set;}
Remarks
The DataContext can be specified using either strings or integers to describe the report nodes. The wild card (*) can only be set for the last level.
Example
The following example logs the FieldDrillDown event of the report.
'Declaration
Private Sub LogFieldDrillDownEvent(ByVal source As Object, _
ByVal e As CrystalDecisions.Web.DrillDownEventArgs) Handles _
CrystalReportPartsViewer.FieldDrillDown
Dim eventLog As New EventLog("event.log")
Dim eventMsg As String = _
"FieldDrillDown event:" & vbCrLf & _
"DataContext: " & e.DataContext.ToString() & vbCrLf & _
"GroupName: " & e.GroupName & vbCrLf & _
"GroupPath: " & e.GroupPath & vbCrLf & _
"ObjectName: " & e.ObjectName
eventLog.WriteEntry(eventMsg)
e.Handled = False
End Sub
private void LogFieldDrillDownEvent(Object source,
CrystalDecisions.Web.DrillDownEventArgs e)
{
System.Diagnostics.EventLog eventLog =
new System.Diagnostics.EventLog("event.log");
string eventMsg =
"FieldDrillDown event:" + "\n" +
"DataContext: " + e.DataContext.ToString() + "\n" +
"GroupName: " + e.GroupName + "\n" +
"GroupPath: " + e.GroupPath + "\n" +
"ObjectName: " + e.ObjectName + "\n";
eventLog.WriteEntry(eventMsg);
e.Handled = false;
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports for Visual Studio .NET 2002
See Also
Reference
DrillDownEventArgs Class
DrillDownEventArgs Members
CrystalDecisions.Web Namespace