Spreadsheet control, clicking on File tab causes System.NullReferenceException

I am trying to use the Spreadsheet control. I followed the steps outlined in the "Create a simple application with Spreadsheet".

When I launch the application and click the File tab in the ribbon, a System.NullReferenceException occurs.

How to prevent this?


nullreference.png


1 Reply

VS Vijayarasan Sivanandham Syncfusion Team February 21, 2022 12:43 PM UTC

Hi Bob larranaga,

You have to use the RibbonForm as parent form as shown in the below given code snippet. 

public partial class Form1 : RibbonForm 
{         
        public Form1() 
        { 
            InitializeComponent();             
        } 
} 

Sample Link: https://www.syncfusion.com/downloads/support/forum/173041/ze/SpreadSheetDemo-2019756983

Please let us know if you have any concerns in this. 

Regards, 
Vijayarasan S 


Loader.
Up arrow icon