Exception placing formulas into GridModel w/ no grid control

I''m creating a GridModel that is populated with FormulaCells, filling in values and formulas, and finally, attaching the complete model to a GridControl. Unfortunately, GridFormulaEngine.Refresh() is trying to reference a grid control without checking for null. If Me.grid.ActiveGridView.ViewLayout.VisibleCellsRange.Contains(info2) Then Me.grid.ActiveGridView.Invalidate(Me.grid.ActiveGridView.RangeInfoToRectangle(info2)) End If This seems to violate the separation of the model from the view. Tom

1 Reply

AD Administrator Syncfusion Team March 21, 2005 07:38 PM UTC

If you call engine.CalculatingSuspended = true; before you fill the model, does it avoid this problem. We will add the check.

Loader.
Up arrow icon