DataSource for Entity Framework in WPF
C1.LiveLinq.LiveViews Namespace / ViewRowCollection Class / CreateRow Method

In This Topic
    CreateRow Method (ViewRowCollection)
    In This Topic
    Creates a new item directly in the view, and a view row associated with it, and adds it to the ViewRowCollection.
    Syntax
    'Declaration
     
    Public Function CreateRow() As ViewRow
    public ViewRow CreateRow()

    Return Value

    The newly created view row.
    Remarks
    Creating a new row is an update operation on the view. As any other update operation performed directly on the view (as opposed to on the base data collection on which that view depends, see C1.LiveLinq.LiveViewExtensions.AsUpdatable<T>), it is allowed only if the view is not read-only (see View.IsReadOnly), and it results in updating (in this case, adding a new item to) one of the view's base data collections.
    See Also