ComponentOne DataObjects for .NET
GetDefaultTableViewRows Method

C1.Data.2 Assembly > C1.Data Namespace > C1DataSet Class : GetDefaultTableViewRows Method
The name of the table view for which to return the list of potential rows.
Returns the list of all potential table view rows, pointers to all existing table rows.
Syntax
'Declaration
 
Public Function GetDefaultTableViewRows( _
   ByVal tableViewName As System.String _
) As System.Collections.ArrayList
public System.Collections.ArrayList GetDefaultTableViewRows( 
   System.string tableViewName
)

Parameters

tableViewName
The name of the table view for which to return the list of potential rows.
Remarks
This method can be used only on the second stage of ADO.NET data set modification/synchronization process, see Working with ADO.NET Dataset.

This method returns a list that can be passed as a parameter to SetTableViewRows. If you pass it unchanged, the table view will contain all existing table rows, unrestricted. Filtering this list, building another list from its elements, you can restrict (filter) the table view.

Elements of the returned ArrayList are:

For a table view based on a simple table: C1DataRow objects, rows of the corresponding table.

For a table view based on a composite table: arrays of type C1DataRow[], with length equal to the number of "main" simple tables in the composite table ("main" means connected to its parent with a 1-M relation, not with an M-1 one). That is, every element of the list is an array of table rows, one for each "main" constituent table. A composite table can also contain "linked" constituent tables (connected to their parents with M-1 relations). Since "linked" rows can be uniquely located given the values in "main" rows, they are not used here.

See Also

Reference

C1DataSet Class
C1DataSet Members