[]
        
(Showing Draft Content)

C1.LiveLinq.LiveViews.ViewRowCollection

ViewRowCollection Class

Represents a collection of ViewRow objects used for programmatic access to view elements (items) and for data binding.

Inheritance
ViewRowCollection
Namespace: C1.LiveLinq.LiveViews
Assembly: C1.LiveLinq.4.8.dll
Syntax
public abstract class ViewRowCollection : IObservableSource<ViewRow>, IIndexedSource<ViewRow>, IBindingListView, IBindingList, IList, ICollection, ICancelAddNew, ICollectionView, INotifyCollectionChanged, IEditableCollectionView, IList<ViewRow>, ICollection<ViewRow>, IEnumerable<ViewRow>, IEnumerable, ITypedList, IItemProperties, INotifyPropertyChanged
Remarks

A ViewRowCollection is owned by a view, see Rows.

The collection of view rows (ViewRow objects) is always synchronized with the collection of view elements.

ViewRow objects provide programmatic access to view elements and their properties. Also, the Rows collection serves as the data source for data binding, when you bind a control or another client to a view.

Properties

Name Description
AllowClear

Gets a value indicating whether the Clear() operation is allowed on the view directly.

AllowEdit

Gets a value indicating whether modifying property values is allowed on the view directly.

AllowNew

Gets a value indicating whether the CreateRow() operation is allowed on the view directly.

AllowRemove

Gets a value indicating whether deleting rows is allowed on the view directly.

Count

Gets the number of elements in the view.

GroupDescriptions

Gets a collection of GroupDescription objects that describe how the items in the collection are grouped.

Groups

Gets the top-level groups.

Indexes

Gets the collection of indexes for this view allowing to search for ViewRow objects.

this[int]

Gets the view row at the specified ordinal position.

Properties

Returns the collection of properties available in the view element type to programmatic access through ViewRow and to data binding.

SortDescriptions

Gets a collection of SortDescription objects that describe how the items in the collection are sorted.

Methods

Name Description
Clear()

Deletes all view elements.

Contains(ViewRow)

Determines whether the ViewRowCollection contains a specific view row.

CreateRow()

Creates a new item directly in the view, and a view row associated with it, and adds it to the ViewRowCollection.

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 the collection.

GetItemProperties(PropertyDescriptor[])

Returns the collection of properties available in the view element type to programmatic access through ViewRow and to data binding.

IndexOf(ViewRow)

Determines the ordinal position of a specific view row in the ViewRowCollection.

Remove(ViewRow)

Deletes the specified view item.

RemoveAt(int)

Deletes the view row at a specified ordinal position in ViewRowCollection.

Events

Name Description
Changed

Occurs after a view row has changed.

ViewRowAdding

Occurs after a new view row is created so it can be populated with default values.

Extension Methods