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.
Unfortunately, activation email could not send to your email. Please try again.

GDBG : strenge problem

Thread ID:





42413 Mar 28,2006 11:13 AM Apr 3,2006 12:43 AM Windows Forms 7
Tags: GridControl
Ken Lee
Asked On March 28, 2006 11:13 AM

Hi, Experts I''m using two GDBG in a windows form. there are a dataset including two datatable and a relation between two datatables, one as parent datatable , the other as child datatable. All of databound operations does well, but when parent datatable is empty, I input a first character , the row becomes editmode , then press ESC key(RejectedChanges), the application goes dowm. There is StackOverflowException exception arised, this cause by the application call the NewRowFromBuilder infinited. Have you any idea to solve this problem?

Administrator [Syncfusion]
Replied On March 29, 2006 12:31 AM

Hi Ken, Sorry, I am not able to reproduce the issue. It works fine in the scenario that was mentioned. Can you please reproduce the issue in the attached sample and send it back so that we can get back soon with a solution, and also please mention the grid version that you are using. Regards, Calvin.


Administrator [Syncfusion]
Replied On March 29, 2006 01:44 AM

Hi Ken, Sorry for the wrong sample. Please find the sample below. Thanks, Calvin.


Ken Lee
Replied On March 29, 2006 05:16 AM

Hi, Calvin I post my sample to you, I''m using Syncfusion, development environment .Net 2005. When you key somthing in cell of parent grid, (DONT acceptchange) press ESC key , it may show StackOverflowException( for a while). Thanks your reply and tell me how to solve this problem, thanks in advance Ken


Administrator [Syncfusion]
Replied On March 30, 2006 03:52 AM

Hi Ken, Thanks for the sample. I can able to reproduce the issue here. I will discuss it with the development team and let you know about a work around to solve the issue. Thanks for your patience and the update. Best regards, Madhan

Administrator [Syncfusion]
Replied On March 30, 2006 04:21 AM

Hi ken, Here is one way to avoid this exception. Please try this code snippet and let us know if this helps. private void gridDataBoundGrid1_CurrentCellRejectedChanges(object sender, EventArgs e) { this.gridDataBoundGrid1.Binder.EndEdit(); } Best regards, Madhan

Ken Lee
Replied On March 30, 2006 05:57 AM

Hi, Calvin I think this way is NOT work, the situation is same.I guess you test this case ONLY input first two columns, you can try input through the third column, then press ESC key, the exception shown again. I try input first two columns then press ESC key, the problem can be solved, but not for all of cases. please let me konw again how to avoid this problem. thanks

Administrator [Syncfusion]
Replied On April 3, 2006 12:43 AM

Hi Ken, Sorry for the late response. We have found a way to fix this defect. Please login in to our incident section to get a private patch for this issue. A work around for this problem is tricky. May be you could handle the CurrentCellRejectedChanges and then call the SuspendBinding, start a timer and later call the ResumeBinding. Refer to the sample for more details. Sample : WorkAround_StackOverFlowExcpetion Thanks for your patience. Best regards, Madhan


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.

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.