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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataGrid cells throw exception during editing

Thread ID:

Created:

Updated:

Platform:

Replies:

150784 Jan 20,2020 07:35 AM UTC Jan 21,2020 02:26 PM UTC WinForms 1
loading
Tags: SfDataGrid
Bill
Asked On January 20, 2020 07:35 AM UTC

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.

Susmitha Sundar [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon