Click or drag to resize
DataItemCollection Methods

The DataItemCollection type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds an item to the IList.
Public methodAddNew
Adds a new item to the collection.
Public methodAddNewItem
Adds the specified object to the collection.
Public methodCancelEdit
Ends the edit transaction and discards any pending changes to the item.
Public methodCancelNew
Ends the add transaction and discards the pending new item.
Public methodClear
Removes all items from the IList.
Public methodCommitEdit
Ends the edit transaction and saves the pending changes.
Public methodCommitNew
Ends the add transaction and saves the pending new item.
Public methodContains
Determines whether the IList contains a specific value.
Public methodCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Public methodDeferRefresh
Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh.
Public methodEditItem
Begins an edit transaction of the specified item.
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
Public methodIndexOf
Determines the index of a specific item in the IList.
Public methodInsert
Inserts an item to the IList at the specified index.
Public methodMoveCurrentTo
Sets the specified item to be the CurrentItem in the view.
Public methodMoveCurrentToFirst
Sets the first item in the view as the CurrentItem.
Public methodMoveCurrentToLast
Sets the last item in the view as the CurrentItem.
Public methodMoveCurrentToNext
Sets the item after the CurrentItem in the view as the CurrentItem.
Public methodMoveCurrentToPosition
Sets the item at the specified index to be the CurrentItem in the view.
Public methodMoveCurrentToPrevious
Sets the item before the CurrentItem in the view as the CurrentItem.
Public methodMoveToFirstPage
Sets the first page as the current page.
Public methodMoveToLastPage
Sets the last page as the current page.
Public methodMoveToNextPage
Moves to the page after the current page.
Public methodMoveToPage
Requests a page move to the page at the specified index.
Public methodMoveToPreviousPage
Moves to the page before the current page.
Protected methodOnPropertyChanged
Raises the [E:PropertyChanged] event.
Public methodRefresh
Recreates the view.
Public methodRemove
Removes the specified item from the collection.
Public methodRemoveAt
Removes the item at the specified position from the collection.
Top
Extension Methods
  NameDescription
Public Extension MethodAddRange
Adds the elements from the specified collection - items to the end of the target list.
(Defined by CollectionExtensions.)
Public Extension MethodRemoveAllOverloaded.
Removes all items from the list. As opposed to Clear method raise CollectionChanged event with action Remove and OldItems property set.
(Defined by IListExtensions.)
Public Extension MethodRemoveAll(PredicateObject)Overloaded.
Removes all elements from a list that match the condition defined by the specified predicate.
(Defined by CollectionExtensions.)
Top
See Also