CollectionView.MoveCurrentToFirst Method

Sets the first item in the view as the CurrentItem.

Namespace:  System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public virtual bool MoveCurrentToFirst()

Return Value

Type: System.Boolean
true if the resulting CurrentItem is an item within the view; otherwise, false.

Implements

ICollectionView.MoveCurrentToFirst()

Collection views support the concept of a current record pointer. As you navigate through the objects in a collection view, you are moving a record pointer that allows you to retrieve the object that exists at that particular location in the collection. For more information, see "Binding to Collections" in Data Binding Overview.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft