Version

DataRecordCollection Class Members

The following tables list the members exposed by DataRecordCollection.

Public Constructors
 NameDescription
Public ConstructorDataRecordCollection ConstructorCostructs the collection and initializes its owner data adapter reference.  
Public Properties
 NameDescription
Public PropertyCountNumber of records in the collection.  
Public PropertyCurrentRecord  
Public PropertyOwnerAdapterReference to the DataSourceAdapter object that owns the collection.  
Public PropertySelectArgumentsKeeps a reference to the requested select arguments.  
Protected Properties
 NameDescription
Protected PropertyCurrentThe current DataRecord as enumerating through it  
Protected PropertyHasSummariesIndicates whether the record collection has any summaries set up.  
Protected PropertySummariesA hashtable storing calculated summaries  
Public Methods
 NameDescription
Public MethodAddSummaryFieldAdds a field to the summaries calculation operation.  
Public MethodGetAverageGets average value of all cells in the field.  
Public MethodGetCountGets count of all cell values in the field.  
Public MethodGetEnumeratorImplements the method off the IEnumerator<DataRecord> interface.  
Public MethodGetMax<T>Gets maximum value of all cell values in the field.  
Public MethodGetMin<T>Gets minimum value of all cell values in the field.  
Public MethodGetNextRecordOverloaded. Returns reference to the next record after the provided one.  
Public MethodGetOriginalEnumeratorReturns the original enumerator of the records in the data source.  
Public MethodGetSum<T>Gets sum of all cell values in the field.  
Public MethodGetSumEnumeratorReturns the enumerator of the records in the data source with RowFilter being set to "", this way we can calculate all the summaries.  
Public MethodIsSummaryFieldIndicates whether a field is marked for collecting summaries.  
Public MethodLoadViewStateLoad data modified at run time.  
Public MethodSaveViewStateSave data modified at run time.  
Protected Methods
 NameDescription
Protected MethodCalculateSummariesCalculates summaries for all marked for calculation fields in the record.  
Protected MethodNewSummaryValueRecalculates summaries for the new value.  
See Also