1. Open the attached excel spreadsheet file (M1 file) in Spreadsheet Control on a form
2. Make a simple edit (ie change the contents of any cell)
3. Save the spreadsheet
4. Attempt to open the excel file again -
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Syncfusion.Spreadsheet.Windows
StackTrace:
at Syncfusion.Windows.Forms.CellGrid.GridConditionalFormat.CalculateReference(SfCellGrid grid, GridConditionalFormatType conditionalformattype, Object calcvalue, GridCondition condition)
at Syncfusion.Windows.Forms.Spreadsheet.Helpers.ConditionalFormatHelper.ApplyHighlightedCellsRules(SpreadsheetColumn column, String value, IConditionalFormat excelConditionalFormat, GridRangeInfo address, Boolean& isBackgroundApplied, Boolean& isStyleApplied)
at Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetColumn.ApplyConditionalFormats(SpreadsheetPaint drawingContext, Rectangle cellRect)
at Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetColumn.OnRender(SpreadsheetPaint paint, Rectangle cellRect, Rectangle clipRect, Boolean drawGridLines, Boolean adjustBackgroundRect)
at Syncfusion.Windows.Forms.CellGrid.VirtualizingRowPanel.ArrangeItems(Rectangle rowRect, SpreadsheetPaint paint)
at Syncfusion.Windows.Forms.CellGrid.VisualContainer.ArrangeRows(SpreadsheetPaint paint)
at Syncfusion.Windows.Forms.CellGrid.VisualContainer.OnPaint(PaintEventArgs e)
at Syncfusion.Windows.Forms.Spreadsheet.VisualContainerExt.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle, Region transparentRegion)
at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
at System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
at System.Windows.Forms.ScrollableControl.OnPaintBackground(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Syncfusion.Windows.Forms.CellGrid.ScrollableChildFrame.WndProc(Message& m)
at Syncfusion.Windows.Forms.CellGrid.SelectionPanel.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)