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

StackOverFlow Exception

Thread ID:





19357 Sep 24,2004 09:32 AM UTC Sep 24,2004 10:41 AM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On September 24, 2004 09:32 AM UTC

Hi, I''ve got a GridDataBoundGrid bound to a DataTable. The table is continuously updated in the background and the grid reflects the changes. Some columns on the grid are editable. If editing is completed by moving the current cell to a different row, e.g. by pressing the down arrow or clicking on another row with the mouse, everything is fine. If editing is completed by moving to a cell on the same row, e.g. by pressing the right arrow key, a StackOverFlowException occurs. I don''t understand why this is occurring. Please can you tell me how to alleviate the problem? Stack trace attached. Thanks, Ben Lamb. StackTrace_9046.zip

Administrator [Syncfusion]
Replied On September 24, 2004 09:45 AM UTC

Hi Ben, It''s that code when bindingList_ListChanged calls CancelEdit because the current record is modified from the outside and therefore the internal buffer changes are discarded. The problem is that during CancelEdit we again try to reset the values in the datsource which causes the StackOverflow. We fixed that in our code base now. But, you can define the behavior what bindingList_ListChanged should do in such situation and instruct it not to call CancelEdit. To do this, set gridDataBoundGrid1.Binder.DefaultCurrentRecordItemChangedBehavior = GridCurrentRecordItemChangedBehavior.KeepCurrentRecord; or handle the OnCurrentRecordItemChanged event. Stefan

Administrator [Syncfusion]
Replied On September 24, 2004 10:41 AM UTC

Hi Stefan, Thanks for your quick reply and explanation. I''ve implemented it and it fixes the problem. Best regards, Ben.


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