Click or drag to resize
CalculationWorks Logo
BcfColumnValueSetterSetValue Method
Sets the value.

Namespace: CalculationWorks.BusinessModel.Behaviors
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 2.1.0.0
Syntax
public virtual void SetValue(
	BcfCell cell,
	Object value
)

Parameters

cell
Type: CalculationWorks.BusinessModelBcfCell
The cell.
value
Type: SystemObject
The value.
Exceptions
ExceptionCondition
ArgumentNullExceptioncell is null
InvalidOperationException

dataset is locked; e.g. BcfDataSet is just switching the current transaction or is undoing/redoing.

do not call this method e.g. from inside BcfFunctionBase, BcfValidatorBase nor IBcfUndoRedoItem

Remarks

Computed and default values do not pass this method.

When overriding base method invocation can be omitted. You can redirect the write attempts to other columns. This the only chance to make computed columns editable.

Try to avoid reading computed values from the dataset. If you have to and a transaction is running the values you get may be outdated until BcfTransaction.Compute(Boolean) was called since the last SetValue().

See Also