Click or drag to resize
CalculationWorks Logo
BcfHierarchicalViewManagerAddBranchBindingSourceTBindingSource Method
Creates a new binding source and adds it to the specified parents ChildBindingSources.

Namespace: CalculationWorks.ViewModel.Forms
Assembly: CalculationWorks.ViewModel.Forms (in CalculationWorks.ViewModel.Forms.dll) Version: 3.0.2.0
Syntax
protected TBindingSource AddBranchBindingSource<TBindingSource>(
	string name,
	BcfBindingSource parent,
	string relationName,
	Func<BcfBindingSourceBuilder, TBindingSource> createBindingSource
)
where TBindingSource : BcfBindingSource

Parameters

name
Type: SystemString
The name.
parent
Type: CalculationWorks.ViewModel.FormsBcfBindingSource
The parent BcfBindingSource.
relationName
Type: SystemString
Name of the relation.
createBindingSource
Type: SystemFuncBcfBindingSourceBuilder, TBindingSource
TBindingSource constructor.

Type Parameters

TBindingSource
The type of the binding source.

Return Value

Type: TBindingSource
TBindingSource.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null
ArgumentNullExceptionparent is null
ArgumentNullExceptionrelationName is null
ArgumentNullExceptioncreateBindingSource is null
ArgumentExceptionparent not registered in this BcfHierarchicalViewManager
ArgumentExceptionrelationName is not in tables parent relations
ArgumentExceptionname is not unique
Version Information

CalculationWorks.ViewModel.Forms

Supported in: 3.0, 2.1, 2.0
See Also