ComponentOne DataObjects for .NET
ExposedInBinding Property (ViewRelation)

C1.Data.2 Assembly > C1.Data.SchemaObjects Namespace > ViewRelation Class : ExposedInBinding Property
Gets or sets a value indicating whether relation is used for data binding (shown in the DataMember property of bound controls).
Syntax
'Declaration
 
Public Overridable Property ExposedInBinding As System.Boolean
public virtual System.bool ExposedInBinding {get; set;}
Remarks
Default: True.

If this property is set to False, the relation will be available only programmatically (through the C1.Data.C1DataRow.GetChildRows method and typed business logic methods), but data binding will not see it. A data bound control, such as a grid, has only relations with ExposedInBinding=True available for selection in its DataMember property for data binding.

Use this property to hide relations that you only need programmatically, do not need to appear in bound controls for the end user.

In C1DataExpress, the value of the ExposedInBinding property is determined by the Master-detail check box in the Relations editor. If the check box is unchecked, ExposedInBinding=False.

See Also

Reference

ViewRelation Class
ViewRelation Members