We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DataGrid cells throw exception during editing

I have an SFDataGrid, which I've populated from a database using a DataTable object. In the CurrentCellValidated event, I have an Update command which updates the database table with the new value. It seems to work just fine.

However, I have noticed that, during seemingly random moments when I'm editing cells, it throws an "Object Reference not set to instance of an object" exception and will fail to debug the issue. Specifically I get a "Break Mode" screen in VB.Net which indicates that "all threads were running external code". It has no pattern and seems to occur randomly when I'm inside a cell trying to edit its data - both when I hit the Enter key to trigger the Validated event and when I'm just typing new values onto the cells. 

I have tried Googling the issue and was hinted to changing the CPU setting to x64 from any CPU, but that did not work. I found no other practical solution. Not using a database query to populate the grid and going with an internal List Of... solution like most of the Syncfusion samples use is not an option, mostly due to the sheer volume of the data.

1 Reply

SS Susmitha Sundar Syncfusion Team January 21, 2020 02:26 PM UTC

Hi Bill, 
 
Thank you for using Syncfusion controls. 
 
We have checked you reported scenario, but unfortunately, we did not get any crashes while editing the SfDataGrid cells. Please checked the below sample and video link, 
 
 
 
We have tested with Syncfusion version 17.4.0.39.   
   
Please check the above sample and revert us if you still facing the same issue? If yes, please modify the sample based on your scenario and revert us back with following details, 
 
·       Syncfusion updated version 
 
·       Please provide stack trace for this issue.  
 
It will be helpful for us to check on it and provide you the solution at the earliest.     
 
Regards, 
Susmitha S 


Loader.
Live Chat Icon For mobile
Up arrow icon