| C1.Data.2 Assembly > C1.Data Namespace > C1DataSet Class : GetDefaultTableViewRows Method |
'Declaration Public Function GetDefaultTableViewRows( _ ByVal tableViewName As System.String _ ) As System.Collections.ArrayList
public System.Collections.ArrayList GetDefaultTableViewRows( System.string tableViewName )
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.