C1.LiveLinq.LiveViews Namespace > View Class : Rows Property |
'Declaration Public ReadOnly Property Rows As ViewRowCollection
public ViewRowCollection Rows {get;}
There can be a view with elements of any type T, as represented by the generic class View<T>. That type is not always known beforehand, so it is not always possible to access properties of view elements with strong-typed (early binding) code. Dynamic (untyped, late binding) access to view elements is provided by the ViewRowCollection owned by the view.
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, in WinForms, the Rows collection serves as the data source for data binding, when you bind a control or another client to a view, because a view returns its Rows collection in its implementation of the System.ComponentModel.IListSource interface.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2