CrystalReportViewer.DrillDownOnGroup 方法
在组上深化。
[Visual Basic]
Public Sub DrillDownOnGroup( _ ByVal groupInfo As CrystalDecisions.Shared.TotallerNodeID _ )
[C#]
public void DrillDownOnGroup(
CrystalDecisions.Shared.TotallerNodeID groupInfo
);
参数
- groupInfo
表示要在其上向下钻取的组的 TotallerNodeID 对象。
备注
需要为 TotallerNodeID 的所有属性提供数据,但 GroupNamePath 除外。
示例
此示例说明了如何在按钮单击事件中对某个组上进行深化。
[Visual Basic] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles Button1.Click Dim groupInfo As New CrystalDecisions.Shared.TotallerNodeID() groupInfo.GroupLevel = 1 groupInfo.GroupName = "BC" groupInfo.GroupPath(0) = 13 CrystalReportViewer1.DrillDownOnGroup(groupInfo) End Sub
[C++] void Button1Click(Object* sender, System::EventArgs * e) { TotallerNodeID* groupInfo = new TotallerNodeID (); int groupLevel __gc[] = new int __gc[1]; groupInfo->GroupLevel = 1; groupInfo->GroupName = "BC"; groupLevel [0] = 13; groupInfo->GroupPath = groupLevel; crystalReportViewer1->DrillDownOnGroup(groupInfo); };
[C#] private void button1_Click(object sender, System.EventArgs e) { TotallerNodeID groupInfo = new TotallerNodeID (); int[] groupLevel = new int[1]; groupInfo.GroupLevel = 1; groupInfo.GroupName = "BC"; groupLevel [0] = 13; groupInfo.GroupPath = groupLevel; crystalReportViewer1.DrillDownOnGroup(groupInfo); }
要求
命名空间 CrystalDecisions.Windows.Forms
程序集 CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)
请参见
CrystalReportViewer 类 | CrystalReportViewer 成员 | CrystalDecisions.Windows.Forms 命名空间
©2005 Business Objects SA 保留所有权利。
Business Objects SA http://www.china.businessobjects.com/ 支持服务 http://www.china.businessobjects.com/ |