我们用虚拟模式的方式,每300ms设置一次sheet.RowCount = dataRowCount,这样进行了很多次后,在sheet.RowCount = dataRowCount这一行报了下面的这个错:
System.NullReferenceException: Object reference not set to an instance of an object.
at FarPoint.Win.Spread.SheetView.OnRemoveRows(Int32 row, Int32 count)
at FarPoint.Win.Spread.SheetView.OnDataModelChanged(Object sender, SheetDataModelEventArgs e)
at FarPoint.Win.Spread.Model.SheetDataModelEventHandler.Invoke(Object sender, SheetDataModelEventArgs e)
at FarPoint.Win.Spread.Model.BaseSheetDataModel.OnChanged(SheetDataModelEventArgs e)
at FarPoint.Win.Spread.Model.BaseSheetDataModel.FireChanged(Int32 row, Int32 column, Int32 rowCount, Int32 columnCount, SheetDataModelEventType type)
at FarPoint.Win.Spread.Model.DefaultSheetDataModel.set_RowCount(Int32 value)
at FarPoint.Win.Spread.SheetView.set_RowCount(Int32 value) |
|