DataGridCollectionView Methods
Methods
AddNew() | Add a new item to the underlying collection. Returns the new item. After calling AddNew and changing the new item as desired, either CommitNew or CancelNew" should be called to complete the transaction. |
CancelEdit() | Complete the transaction started by . The pending changes (if any) to the item are discarded. |
CancelNew() | Complete the transaction started by AddNew. The new item is removed from the collection. |
CommitEdit() | Complete the transaction started by . The pending changes (if any) to the item are committed. |
CommitNew() | Complete the transaction started by AddNew. We follow the WPF convention in that the view's sort, filter, and paging specifications (if any) are applied to the new item. |
Contains(Object) | Return true if the item belongs to this view. No assumptions are made about the item. This method will behave similarly to IList.Contains(). If the caller knows that the item belongs to the underlying collection, it is more efficient to call PassesFilter. |
DeferRefresh() | Enter a Defer Cycle. Defer cycles are used to coalesce changes to the ICollectionView. |
EditItem(Object) | Begins an editing transaction on the given item. The transaction is completed by calling either CommitEdit or CancelEdit. Any changes made to the item during the transaction are considered "pending", provided that the view supports the notion of "pending changes" for the given item. |
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator() | Implementation of IEnumerable.GetEnumerator(). This provides a way to enumerate the members of the collection without changing the currency. |
GetHashCode() | Serves as the default hash function. (Inherited from Object) |
GetItemAt(Int32) | Retrieve item at the given zero-based index in this DataGridCollectionView, after the source collection is filtered, sorted, and paged. |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
IndexOf(Object) | Return the index where the given item appears, or -1 if doesn't appear. |
MoveCurrentTo(Object) | Move to the given item. |
MoveCurrentToFirst() | Move to the first item. |
MoveCurrentToLast() | Move to the last item. |
MoveCurrentToNext() | Move to the next item. |
MoveCurrentToPosition(Int32) | Move CurrentItem to this index |
MoveCurrentToPrevious() | Move to the previous item. |
MoveToFirstPage() | Moves to the first page. |
MoveToLastPage() | Moves to the last page. The move is only attempted when TotalItemCount is known. |
MoveToNextPage() | Moves to the page after the current page we are on. |
MoveToPage(Int32) | Requests a page move to page pageIndex. |
MoveToPreviousPage() | Moves to the page before the current page we are on. |
PassesFilter(Object) | Return true if the item belongs to this view. The item is assumed to belong to the underlying DataCollection; this method merely takes filters into account. It is commonly used during collection-changed notifications to determine if the added/removed item requires processing. Returns true if no filter is set on collection view. |
Refresh() | Re-create the view, using any SortDescriptions and/or Filters. |
Remove(Object) | Remove the given item from the underlying collection. It needs to be in the current filtered, sorted, and paged view to call |
RemoveAt(Int32) | Remove the item at the given index from the underlying collection. The index is interpreted with respect to the view (filtered, sorted, and paged list). |
ToString() | Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
GetWeakCollectionChangedObservable() | Gets a weak observable for the CollectionChanged event. (Defined by NotifyCollectionChangedExtensions) |
WeakSubscribe(Action(NotifyCollectionChangedEventArgs)) | Subscribes to the CollectionChanged event using a weak subscription. (Defined by NotifyCollectionChangedExtensions) |
WeakSubscribe(NotifyCollectionChangedEventHandler) | Subscribes to the CollectionChanged event using a weak subscription. (Defined by NotifyCollectionChangedExtensions) |