Master-detail-view and edit mode - getting "object not set to an instance of an object"

Hello,

I´m having problems with a SfDataGrid and master-detail-view. You can reproduce the error with the demo application "DetailsViewDataTableBinding" in the DataGrid.Winforms / Samples folder.

Open the application, edit one column of a master record, then edit another column of the same master record. Then click anywhere in the detail-view of this master record and the error "object not set to an instance of an object" in program.cs will appear. The error doesn´t appear, when you edit only one column in the master record and click on the detail-view. Only after editing 2 or more columns in the master record.

This makes it impossible to use the master-detail-view in edit mode. I think, this only happens when using DataTable as a DataSource.

Can you please help me with this problem? Thank you.

Michael

9 Replies

VS Vijayarasan Sivanandham Syncfusion Team December 10, 2020 04:24 PM UTC

Hi Michael Witzik,

Thank you for contacting Syncfusion support.

Currently, we are analyzing your requirement of “Master-detail-view and edit mode - getting object not set to an instance of an object”. We will validate and update you the details on or before December 14, 2020. 
 
We appreciate your patience until then. 
 
Regards, 
Vijayarasan S

 



VS Vijayarasan Sivanandham Syncfusion Team December 14, 2020 12:53 PM UTC

Hi Michael Witzik,

Thank you for your patience.

We have created bug report for the reported issue “System Null reference exception occurs when edit the two or more columns in Master record after click into child datagrid in MasterDetailaViewDataGrid”. Can you please confirm, which version you are using currently?

It will be helpful for us to provide patch in that version.

Regards,
Vijayarasan S

 



MW Michael Witzik December 14, 2020 12:57 PM UTC

Hello,

I am using version 18.1.0.42. But it is also possible for me to upgrade to the newest version 18.3.0.35.

Kind regards.


VS Vijayarasan Sivanandham Syncfusion Team December 15, 2020 02:18 PM UTC

Hi Michael Witzik,

Thanks for the update.

Your updated Syncfusion Version 18.3.0.35 Volume 3 2020 Main release We will provide the patch in that version.

We have created bug report for the reported issue “System Null reference exception occurs when edit the two or more columns in Master record after click into child datagrid in MasterDetailaViewDataGrid”. We will fix this issue and provide you with patch on December 28, 2020.

You can track the status of this report through the following feedback link,

Feedback link: https://www.syncfusion.com/feedback/20591/systemnullreference-exception-occurs-when-edit-the-two-or-more-columns-in-master
 

Note: The provider feedback link is private, and you need to login to view this feedback.

We appreciate your patience until then.

Regards,
Vijayarasan S
 



VS Vijayarasan Sivanandham Syncfusion Team December 28, 2020 11:22 AM UTC

Sorry for the inconvenience caused.

We are facing difficulties while fixing this issue “System Null reference exception occurs when edit the two or more columns in Master record after click into child datagrid in MasterDetailaViewDataGrid”. We are working on this with high priority and we will update you patch on December 30, 2020.

We appreciate your patience until then.

Regards,
Vijayarasan S   
 



DM Dhanasekar Mohanraj Syncfusion Team December 30, 2020 01:55 PM UTC

Hi Michael Witzik, 

Thank you for your patience. 

The reported issue has been fixed and the patch for this fix can be downloaded from the following location. 

Recommended approach – exe will perform automatic configuration 
Please find the patch setup from below location: 

Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environtment 
Please find the patch assemblies alone from below location: 

Please find the NuGet from below location: 

Assembly version: 18.3.0.35 
Installation Directions: 
This patch should replace the file “Syncfusion.SfDataGrid.Winforms” under the following folder. 
$System drive:\Files\Syncfusion\EssentialStudio\$Version# 
\precompiledassmblies\$Version#\[TargetFramework] 
Eg : $system drive:\Program Files\Syncfusion\Essential 
Studio\18.3.0.35\PreCompiledassemblies\18.3.0.35\4.6 
To automatically run the Assmbly Manager, please check the Run assembly manager checkbox option While installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (Available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies. 

Note: 
You can change how you receive bug fixes by navigating to the following link and updating your preferences 

Disclaimer: 
Please note that we have created this patch version 18.3.0.35 specifically to resolve the following issue(s) reported in this/the forum(s) 160465. 
If you have received other patches for the same version for other products, please apply all patches in the order received. 

Regards,
Dhanasekar Mohanraj. 



MW Michael Witzik January 25, 2021 08:55 AM UTC

Hello Dhanasekar,

thank you for the patch.

Unfortunately we needed to upgrade to the newest version of Syncfusion controls v18.4.0.30. The patch cannot be installed with this version.

Will this patch be part of an upcoming full release of Syncfusion controls?

Thank you.
Michael


VS Vijayarasan Sivanandham Syncfusion Team January 26, 2021 11:58 AM UTC

Hi Michael Witzik,

Thanks for the update.
 
Based on provided information your reported issue “Null reference exception occurs when edit the two or more columns in master record after click into child datagrid”. In this fix we will included in our upcoming Essential Studio 2020 Volume 4 SP release which is expected on end of January 2021. We will inform you once it is released with the fix for the reported issue.
  
We appreciate your patience until then.  

Regards,
Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team February 1, 2021 03:08 AM UTC

Hi Michael Witzik,

Thank you for your patience.

We are glad to announce that our Essential Studio 2020 Volume 4 Service Pack Release v18.4.0.39 is rolled out with the reported bug fix “Null reference exception occurs when edit the two or more columns in master record after click into child datagrid” and is available for download under the following link.

 
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

 
Regards,
Vijayarasan S 


Loader.
Up arrow icon