Provides read-only access to the items in a ListViewDataItemGroup. When backed by a RadListSource<TDataItem>, operations use its collection view; when backed by a data group's item list, they use that list directly.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ListViewGroupedItemsCollection : IReadOnlyCollection<ListViewDataItem>, IEnumerable, IDisposable
Inheritance: objectListViewGroupedItemsCollection
Implements:
Constructors
Creates an empty group-item collection backed by a new list source.
public ListViewGroupedItemsCollection()
Properties
InnerList
IList<ListViewDataItem>
Gets or replaces the underlying item list. Replacing a current RadListSource<TDataItem> disposes that source.
protected IList<ListViewDataItem> InnerList { get; set; }
The list or list source that supplies the group's items.
Gets the item at the specified position in the active group view.
public ListViewDataItem this[int index] { get; }
The zero-based position of the item.
Property Value:The item at the specified position.
Implements:
Methods
Determines whether the active group view contains the specified item.
public bool Contains(ListViewDataItem value)
The item to locate.
Returns:Implements:
Copies the items in the active group view into an array.
public void CopyTo(ListViewDataItem[] array, int index)
The destination array.
indexintThe zero-based destination index at which copying begins.
Implements:
Disposes the backing list when it implements IDisposable.
public void Dispose()
Implements:
Enumerates the items in the active group view.
public IEnumerator<ListViewDataItem> GetEnumerator()
IEnumerator<ListViewDataItem>
An enumerator over the group items.
Finds the position of an item in the active group view.
public int IndexOf(ListViewDataItem value)
The item to locate.
Returns:The zero-based position, or -1 if the item is not present.
Implements:
Replaces the backing list with a new empty list source that does not change the current item when items are added.
public void ResetListSource()