Version

DataManagerBase Class Members

The following tables list the members exposed by DataManagerBase.

Public Properties
 NameDescription
Public PropertyAllowCollectionViewOverridesGets/Sets whether this DataManagerBase is allowed to set properties for sorting and grouping if DataSource is an ICollectionView  
Public PropertyCachedCollectionTypeA cached version of CollectionType.  
Public PropertyCachedTypeGets/Sets a cached version of the DataType.  
Public PropertyCachedTypedInfoGets/Sets a cached version of the DataType.  
Public PropertyConditionalFormattingRulesGets / sets the collection of conditional formatting rules which will be requesting data.  
Public PropertyCurrentPageGets / sets the index of the page of data which should be retrieved from the manager.  
Public PropertyDataSourceGets or sets the IEnumerable that this DataManagerBase manages.  
Public PropertyEnablePagingGets / sets whether paging should be used by the manager.  
Public PropertyFiltersGets / sets the RecordFilterCollection which will be applied to the records during the databinding.  
Public PropertyGroupByObjectGets/Sets the object in which the data that this DataManagerBase represents, should be grouped by.  
Public PropertyGroupBySortAscendingGets/Sets the sort direction that should be applied to the field that the underlying data has been grouped by.  
Public PropertyGroupBySortContextGets/Sets the CurrentSort that will be applied when the data is Grouped by a particular field.  
Public PropertyMergeDataContextsGets the list of MergedDataContext objects, that the manager should be displaying the data as.  
Public PropertyOriginalDataSourceGets or sets the IEnumerable that this DataManagerBase manages without converting types.  
Public PropertyPageCountGets the total number of pages available in the data source based on page size. If EnablePaging is false, this will report 1.  
Public PropertyPageSizeGets / sets how many records constitute a page of data  
Public PropertyRecordCountGets the number of records that can be currently displayed.  
Public PropertySortGets an observable collection of sorts, from primary sort to final sort. Sorts after the first are only applied if all the previous sorts were equal.  
Public PropertySortedFilteredDataSourceGets/sets a cached list of sorted items.  
Public PropertySummariesGets / sets the SummaryDefinitionCollection which will be applied to the records during the databinding.  
Public PropertySummaryExecutionGets / sets the SummaryExecution which will determine where the summaries should be calculated by default.  
Public PropertySummaryResultCollectionThe collection of SummaryResult objects that will be populated by the DataManagerBase.  
Public PropertySupportsDataManipulationsGets/ sets whether data manipulations such as Sorting are supported on this particular data manager.  
Public PropertySupportsEditingGets whether editing is supported by the collection.  
Public PropertySuspendInvalidateDataSourceGets / sets if the DataManager should be prevented from invaliating it's cached data stores, so that multiple actions can be built up and executed at one time.  
Public PropertyTotalRecordCountGets the total number of records available from the datasource.  
Protected Properties
 NameDescription
Protected PropertyCollectionTypeThe System.Type that the collection is designed to hold.  
Protected PropertyDataTypeReturns type of data that this IEnumerable represents.  
Protected Internal PropertyDeferPrevents operations from happening when the control is in an inconsistant state.  
Protected PropertyIBindingListDataGets the underlying data source as an System.ComponentModel.IBindingList. If the datasource isn't an IBindingList, null is returned.  
Protected PropertyIBindingLisViewtDataGets the underlying data source as an System.ComponentModel.IBindingListView. If the datasource isn't an IBindingListView, null is returned.  
Protected PropertyICollectionViewDataGets the underlying data source as an System.ComponentModel.ICollectionView. If the datasource isn't an ICollectionView, null is returned.  
Protected PropertyIEditableCollectionViewDataGets the underlying data source as an System.ComponentModel.IEditableCollectionView. If the datasource isn't an IEditableCollectionView, null is returned.  
Protected PropertyIFilteredCollectionViewDataGets the underlying data source as an IFilteredCollectionView. If the datasource isn't an IFilteredCollectionView, null is returned.  
Protected PropertyIListDataGets the underlying data source as an System.Collections.IList. If the datasource isn't an IList, null is returned.  
Protected PropertyIsSortedFilteredDataSourceCalculatedGets/ sets whether the the SortedFilteredDataSource needs to be recalculated.  
Protected PropertyITypedListDataGets the underlying data source as an System.ComponentModel.ITypedList. If the datasource isn't an ITypedList, null is returned.  
Public Methods
 NameDescription
Public MethodAddRecordAdds inputted object to the datasource  
Public Methodstatic (Shared in Visual Basic)BuildPropertyExpressionFromPropertyNameOverloaded. Builds a System.Linq.Expressions.Expression for complex property names such as Address.Street1 or Items[FirstName]  
Public MethodCancelEditWraps the IEditableCollectionVie.CancelEdit method  
Public MethodCommitEditWraps the IEditableCollectionVie.CommitEdit method  
Public Methodstatic (Shared in Visual Basic)CreateDataManagerOverloaded. Creates a generic data manager of the type of the first object in the source.  
Public MethodDetachWeekReferencesClears the collection changed handlers used by the DataManager  
Public MethodEditItemWraps the IEditableCollectionVie.EditItem method  
Public MethodGenerateNewObjectCreates a new object with of DataType type.  
Public MethodGetDataPropertiesReturns an IEnumerable of DataField's that describe the different fields in this object.  
Public Methodstatic (Shared in Visual Basic)GetDefaultValue  
Public MethodGetRecordReturns an object in the data source at a given index, after applying the sort and filter.  
Public MethodInsertRecordAdds inputted object to the datasource at the given index  
Public MethodRefreshSummariesReevaluates the summaries for the ItemsSource bound to this DataManagerBase.  
Public MethodRemoveRecordRemoves a record from the datasource.  
Public MethodResetClears out any stored information on the previous DataSource.  
Public Methodstatic (Shared in Visual Basic)ResolveCollectionTypeResolves the underlying type of the item that the specified collection contains.  
Public MethodResolveIndexForRecordLooks through the filtered DataSource for the index of the item specified.  
Public Methodstatic (Shared in Visual Basic)ResolveItemTypeResolves the underlying type of the item that the specified collection contains.  
Public Methodstatic (Shared in Visual Basic)ResolvePropertyInfoFromPropertyPathWalks through the property tree of an object to resolve the propretyInfo  
Public Methodstatic (Shared in Visual Basic)ResolvePropertyTypeFromPropertyNameResolves the type of a property for complex properties such as Address.Stree1.  
Public Methodstatic (Shared in Visual Basic)ResolveValueFromPropertyPathWalks the property tree of an object to resolve properties such as Address.Street1 or Items[FirstName]  
Public MethodUpdateCurrentItemMoves the System.ComponentModel.ICollectionView current item pointer to the inputted item.  
Public MethodUpdateDataClears the underlying cached data, and triggeres all data operations to be applied again.  
Protected Methods
 NameDescription
Protected MethodClearCachedDataSourceClears any cached information that the manager keeps.  
Protected MethodGenerateDataFieldCreates a DataField object, which contains information about a specific property.  
Protected MethodGetDataSourceGets the DataSource associated with this DataManagerBase.  
Protected MethodOnCollectionChangedRaises the CollectionChanged event.  
Protected MethodOnCurrentItemChangedRaises the CurrentItemChanged event.  
Protected MethodOnDataSourceCollectionChangedTriggered when the underlying data source's data is changed.  
Protected MethodOnDataUpdatedRaises the DataUpdated event.  
Protected MethodOnListChangedRaises the ListChanged event.  
Protected Internal MethodOnNewObjectGenerationRaises the NewObjectGeneration event.  
Protected Internal MethodOnResolvingDataRaises the ResolvingData event.  
Protected MethodResolveCountDetermines the size of the collection by walking through the DataSource.  
Protected MethodResolveFilteredSortedPagedDataSourceUses the existing paging, sorting, and filtering information to build a cached object for the DataManagerBase to use.  
Protected MethodResolveRecordResolve the specified record at a given index.  
Protected MethodSetDataSourceSets the DataSource while registering for change notification.  
Protected MethodSetSortedFilteredDataSourceUsed to update the sorted, filtered, paged, and grouped data source.  
Public Events
 NameDescription
Public EventCollectionChangedOccurs when the data source has changed and it implements System.Collections.Specialized.INotifyCollectionChanged.  
Public EventCurrentItemChangedEvent raised when the currentItem changes.  
Public EventDataUpdatedEvent raised when the underlying data changes.  
Public EventListChangedOccurs when the data source has changed and it implements System.Collections.Specialized.INotifyCollectionChanged.  
Public EventNewObjectGenerationEvent raised when the DataManagerBase is attempting to create a new instance of the CachedType object.  
Public EventResolvingDataEvent raised when paging, filtering, sorting, or groupby actions are changed.  
See Also