Spread for ASP.NET 11 Product Documentation
AutoCalculation Property (DefaultSheetDataModel)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > DefaultSheetDataModel Class : AutoCalculation Property
Gets or sets whether the control automatically recalculates each formula in the sheet when the contents of dependent cells change.
Syntax
'Declaration
 
Public Property AutoCalculation As Boolean
'Usage
 
Dim instance As DefaultSheetDataModel
Dim value As Boolean
 
instance.AutoCalculation = value
 
value = instance.AutoCalculation
public bool AutoCalculation {get; set;}

Property Value

Boolean: true, for automatic recalculation, false otherwise
Example
This example sets the AutoCalculation property.
FarPoint.Web.Spread.Model.DefaultSheetDataModel dm = new FarPoint.Web.Spread.Model.DefaultSheetDataModel();
dm.AutoCalculation = true;
dm.ColumnCount = 3;
dm.RowCount = 3;            
FpSpread1.ActiveSheetView.DataModel=dm;
Dim dm As New FarPoint.Web.Spread.Model.DefaultSheetDataModel()
dm.AutoCalculation = true
dm.ColumnCount = 3
dm.RowCount = 3
FpSpread1.ActiveSheetView.DataModel=dm
See Also

Reference

DefaultSheetDataModel Class
DefaultSheetDataModel Members