Skip to main content

DataGridCollectionView Properties

Properties

CanAddNewGets a value indicating whether the view supports AddNew.
CanCancelEditGets a value indicating whether the view supports the notion of "pending changes" on the current edit item. This may vary, depending on the view and the particular item. For example, a view might return true if the current edit item implements IEditableObject, or if the view has special knowledge about the item that it can use to support rollback of pending changes.
CanChangePageGets a value indicating whether the PageIndex value is allowed to change or not.
CanFilterGets a value indicating whether we support filtering with this ICollectionView.
CanGroupGets a value indicating whether this view supports grouping. When this returns false, the rest of the interface is ignored.
CanRemoveGets a value indicating whether the view supports Remove and RemoveAt.
CanSortGets a value indicating whether we support sorting with this ICollectionView.
CountGets the number of records in the view after filtering, sorting, and paging.
CultureGets or sets Culture to use during sorting.
CurrentAddItemGets the new item when an AddNew transaction is in progress Otherwise it returns null.
CurrentEditItemGets the affected item when an EditItem transaction is in progress Otherwise it returns null.
CurrentItemGets the "current item" for this view
CurrentPositionGets the ordinal position of the CurrentItem within the (optionally sorted and filtered) view.
FilterGets or sets the Filter, which is a callback set by the consumer of the ICollectionView and used by the implementation of the ICollectionView to determine if an item is suitable for inclusion in the view.
GroupDescriptionsGets the description of grouping, indexed by level.
GroupsGets the top-level groups, constructed according to the descriptions given in GroupDescriptions.
IsAddingNewGets a value indicating whether an "AddNew" transaction is in progress.
IsCurrentAfterLastGets a value indicating whether currency is beyond the end (End-Of-File).
IsCurrentBeforeFirstGets a value indicating whether currency is before the beginning (Beginning-Of-File).
IsEditingItemGets a value indicating whether an EditItem transaction is in progress.
IsEmptyGets a value indicating whether the resulting (filtered) view is empty.
IsPageChangingGets a value indicating whether a page index change is in process or not.
Item(Int32)Return the item at the specified index
ItemCountGets the minimum number of items known to be in the source collection that verify the current filter if any
NeedsRefreshGets a value indicating whether this view needs to be refreshed.
PageIndexGets the current page we are on. (zero based)
PageSizeGets or sets the number of items to display on a page. If the PageSize = 0, then we are not paging, and will display all items in the collection. Otherwise, we will have separate pages for the items to display.
SortDescriptionsGets the Sort criteria to sort items in collection.
SourceCollectionGets the source of the IEnumerable collection we are using for our view.
TotalItemCountGets the total number of items in the view before paging is applied.

See Also

Reference

DataGridCollectionView Class
Avalonia.Collections Namespace