Click or drag to resize
GroupedDataSource Class
Class providing DataSource grouping - one pass DataSource grouping.
Inheritance Hierarchy
SystemObject
  CMS.BaseGroupedDataSource

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 10.0.0
Syntax
C#
public class GroupedDataSource : IGroupedData, 
	IEnumerable

The GroupedDataSource type exposes the following members.

Constructors
  NameDescription
Public methodGroupedDataSource(Object, String)
Constructor, initializes the GroupedDataSource.
Public methodGroupedDataSource(Object, String, String)
Constructor, initializes the GroupedDataSource.
Top
Fields
  NameDescription
Protected fieldfirstLevel
Top level of the collection.
Protected fieldmColumnName
Column name for grouping.
Protected fieldmDataSource
Data source.
Protected fieldmGroups
Resulting groups.
Protected fieldmLevelColumnName
Column name for level value.
Protected fieldmTopItem
Top item object.
Top
Properties
  NameDescription
Public propertyColumnName
Column name for grouping.
Public propertyDataSource
Data source.
Public propertyLevelColumnName
Column name for level value.
Public propertyTopItem
Gets the first available item.
Top
Methods
  NameDescription
Protected methodAddDataRow
Adds the item to the group table.
Protected methodEnsureList
Ensures the list with specified key value.
Public methodGetEnumerator
Returns grouped datasource enumerator.
Public methodGetGroup
Returns the array list of items from specified group, type of the item depends on the DataSource DataSet, DataView, DataTable -> DataRow
Public methodGetGroupArray
Returns the item group as an array.
Public methodGetGroupDataTable
Returns the item group as an DataTable.
Public methodGetGroupView
Returns the array list of items from specified group, type of the item depends on the DataSource DataSet, DataView, DataTable -> DataRowView
Public methodGetItems
Gets the children based on the given key
Protected methodLoadGroups
Loads the data groups.
Top
Extension Methods
  NameDescription
Public Extension MethodToJSON
Returns JSON representation of current instance of IEnumerable.
(Defined by DataExtensions.)
Public Extension MethodToXML
Returns XML representation of current instance of IEnumerable.
(Defined by DataExtensions.)
Top
See Also