Posted 8 September 2017, 1:34 pm EST
I am getting an exception and can't understand why.
It happens after I have filled the grid once, when I try to clear it (in order to refill it).
Here is the code:
private void InitSpread()
int maxColumns = _models.Count - 1 + ColumnsStatic;
int maxRows = _artifactCount - 1 + RowStatic;
CalculationSpread.TextTipPolicy = TextTipPolicy.Floating;
CalculationSpread.TextTipDelay = 10;
CalculationSpread_Sheet1.ColumnCount = 0;
CalculationSpread_Sheet1.RowCount = 0;
//Rows and columns
CalculationSpread_Sheet1.ColumnCount = maxColumns + 1;
CalculationSpread_Sheet1.RowCount = maxRows + 1;
The exception accures on the line marked in red. It says:
Invalid low bound argument.
Parameter name: LargeChange
I have found this following link with the same problem:
And tried to use ShowCell but it didn't help.
This problem has started after upgrading to v. 4.0.3505.
Now I took away all referance to the new DLL and instead linked back to v 4.0.2001 and this doesn't happen.
the very same code works fine.
Is there anything about the new version or upgrading that I am missing?
Thank you in advance,