Share via


Groups Class

Contains the Group objects for every group in the report.

Namespace CrystalDecisions.CrystalReports.Engine Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)

Syntax

'Declaration
Public Class Groups
    Inherits SCRCollection
    Implements IDisposable, ICollection, IEnumerable, IEnumerator
public class Groups : SCRCollection, IDisposable, ICollection, IEnumerable, IEnumerator

Remarks

Retrieve the Groups collection through the Groups Property of the DataDefinition object.

Example

This example searches for the group according to an numerical index.

'Declaration

          Private Function GetGroupByIndex(ByVal myReportDocument As ReportDocument, ByVal index As Integer) As Group
            If index >= 0 And index < myReportDocument.DataDefinition.Groups.Count Then
              GetGroupByIndex = myReportDocument.DataDefinition.Groups.Item(index)
              Exit Function
            End If
          End Function
          
          private Group GetGroupByIndex(ReportDocument reportDocument, int index)
          {
            if (index >= 0 && index < reportDocument.DataDefinition.Groups.Count)
            {
              return reportDocument.DataDefinition.Groups[index];
            }
            return null;
          }
          

Inheritance Hierarchy

Object
   EngineObjectBase
      SCRCollection
         Groups

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

Groups Members
CrystalDecisions.CrystalReports.Engine Namespace