Skip to main content

IDataGridCollectionView Interface

Enables collections to have the functionalities of current record management, custom sorting, filtering, and grouping.

Definition

Namespace: Avalonia.Collections
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)

public interface IDataGridCollectionView : IEnumerable, 
INotifyCollectionChanged
View Source
ImplementsIEnumerable, INotifyCollectionChanged

Properties

CanFilterGets a value that indicates whether this view supports filtering by way of the Filter property.
CanGroupGets a value that indicates whether this view supports grouping by way of the GroupDescriptions property.
CanSortGets a value that indicates whether this view supports sorting by way of the SortDescriptions property.
CultureGets or sets the cultural information for any operations of the view that may differ by culture, such as sorting.
CurrentItemGets the current item in the view.
CurrentPositionGets the ordinal position of the CurrentItem in the view.
FilterGets or sets a callback that is used to determine whether an item is appropriate for inclusion in the view.
GroupingDepth 
GroupsGets the top-level groups.
IsCurrentAfterLastGets a value that indicates whether the CurrentItem of the view is beyond the end of the collection.
IsCurrentBeforeFirstGets a value that indicates whether the CurrentItem of the view is beyond the start of the collection.
IsEmptyGets a value that indicates whether the view is empty.
IsGroupingGets a collection of GroupDescription objects that describe how the items in the collection are grouped in the view.
SortDescriptionsGets a collection of SortDescription instances that describe how the items in the collection are sorted in the view.
SourceCollectionGets the underlying collection.

Methods

Contains(Object)Indicates whether the specified item belongs to this collection view.
DeferRefresh()Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh.
GetEnumerator()Returns an enumerator that iterates through a collection.
(Inherited from IEnumerable)
GetGroupingPropertyNameAtDepth(Int32) 
MoveCurrentTo(Object)Sets the specified item in the view as the CurrentItem.
MoveCurrentToFirst()Sets the first item in the view as the CurrentItem.
MoveCurrentToLast()Sets the last item in the view as the CurrentItem.
MoveCurrentToNext()Sets the item after the CurrentItem in the view as the CurrentItem.
MoveCurrentToPosition(Int32)Sets the item at the specified index to be the CurrentItem in the view.
MoveCurrentToPrevious()Sets the item before the CurrentItem in the view to the CurrentItem.
Refresh()Recreates the view.

Events

CollectionChangedOccurs when the collection changes.
(Inherited from INotifyCollectionChanged)
CurrentChangedOccurs after the current item has been changed.
CurrentChangingOccurs before the current item changes.

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)

See Also

Reference

Avalonia.Collections Namespace