AD
Administrator
Syncfusion Team
April 21, 2005 09:42 PM UTC
This behavior is expected. Directly updating the GridData object bypasses the events that the GridFormulaEngine listens to to handle updating the formulas depending upon the changed cells.
You could call RecalculateRange after your loop to tell the grid to recompute the formulas.
Dim engine As GridFormulaEngine = CType(Me.grdCB_CCpSI.CellModels("FormulaCell"), GridFormulaCellModel).Engine
engine.RecalculateRange(GridRangeInfo.Table())
But unless you can somehow reduce size of the range you pass in (maybe because you know exactly where the affected formulas will be and only pass in that range), then just updating data using the indexers so the events are raised so the formulaengine can do the updating for you may be more efficient.
AD
Administrator
Syncfusion Team
April 22, 2005 01:04 PM UTC
Thats the exact code we came up with that you gave me. We just wanted to make sure it was suppose to work like that. Thanks for the help