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: 8.2.23
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
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 MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToJSON
Returns JSON representation of current instance of IEnumerable.
(Defined by DataExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToXML
Returns XML representation of current instance of IEnumerable.
(Defined by DataExtensions.)
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
See Also