ComponentOne DataObjects for .NET
IsDefault Property

C1.Data.2 Assembly > C1.Data Namespace > C1DataView Class : IsDefault Property
Gets or sets a value indicating whether this component's RowFilter and Sort settings are applied to any binding to the table view in the data set.
Syntax
'Declaration
 
Public Property IsDefault As System.Boolean
public System.bool IsDefault {get; set;}
Remarks
This property is False by default, meaning that filtering and sorting affect only the data exposed by this C1DataView component. Binding to a C1DataSet directly or to another C1DataView is not affected by this view's filtering and sorting.

If this property is set to True, filtering and sorting affect the underlying table view data directly. So, all controls bound to that table view, in C1DataSet or in C1DataView, are filtered and sorted (including parent-child rows in master-detail). See the DefaultDataView sample in the Samples directory.

Only RowFilter and Sort properties affect table view data, other properties of C1DataView do not affect the whole table view.

IsDefault = True can be used only with a C1DataView attached to a table view (TableViewName specified), it cannot be used with a data view attached to a table (TableName specified).

See Also

Reference

C1DataView Class
C1DataView Members