BcfColumnValueSetterSetValue Method |
Namespace: CalculationWorks.BusinessModel.Behaviors
Exception | Condition |
---|---|
ArgumentNullException | cell 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 |
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().