ComponentOne ADO.NET DataExtender
C1.C1DataExtender.2 Assembly / C1.C1DataExtender Namespace / C1DataView Class / Fill Method / Fill(Boolean) Method
Indicates whether foreign key lookup tables should be re-fetched.

In This Topic
    Fill(Boolean) Method
    In This Topic
    Re-fetch data represented by this C1DataView from database server, optionally refetching a data for foreign key lookup tables.
    Syntax
    'Declaration
     
    Public Overloads Sub Fill( _
       ByVal includingLookupTables As System.Boolean _
    ) 
    public void Fill( 
       System.bool includingLookupTables
    )

    Parameters

    includingLookupTables
    Indicates whether foreign key lookup tables should be re-fetched.
    Remarks
    This method re-fetch rows of base DataTable objects and rebuild this C1DataViewSet's rowset accordingly. It doesn't clear base tables rows before filling, instead it refreshes client rowsets with a data fetched from server in the following way: for each row retrieved from server it finds the existing client DataRow with the same primary key, if such a row has not been found then adds a new DataRow to DataTable. If DataRow has been found and if it has not been modified since it was fetched first time (DataRow.RowState == DataRowState.Unchanged) then its data is refreshed with the values retrieved from server; otherwise, if row has been changed then it stays untouched.

    The includingLookupTables indicates whether foreign key lookup tables of this C1DataView should be re-fetched. It has an effect only for view columns that represents a foreign key DataColumn and has the ColumnStyle.ItemListType property set to ItemListTypeEnum.ForeignKey. See the Data Fetching topic for details.

    See Also