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.

StackOverFlow Exception

Thread ID:

Created:

Updated:

Platform:

Replies:

19357 Sep 24,2004 05:32 AM Sep 24,2004 06:41 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On September 24, 2004 05:32 AM

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 05:45 AM

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 06:41 AM

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

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.

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.

;