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.

GridDataBoundGrid throwing exception during edit

Thread ID:

Created:

Updated:

Platform:

Replies:

50999 Oct 25,2006 02:09 PM Oct 31,2006 12:17 AM Windows Forms 3
loading
Tags: GridControl
James Mulvey
Asked On October 25, 2006 02:09 PM

I have a GridDataBound grid bound to an IBindingList.
If a cell is edited the binder correctly sets the value of the property. However setting the value of the property causes an update to be fired on the IBindingList; which the grid doesn't like (IllegalProgramState exception; message "Grid in update".
Question: How can I prevent the change being written back to the binding list so that I can grid.EndUpdate() and then write the change back safely.

Thanks,

James

Administrator [Syncfusion]
Replied On October 26, 2006 06:31 AM

Hi Mulveyja,

If you have our source code, then getting a debug build of the libraries would allow you to step down in our source and see exactly what line/object in that method is triggerring this exception. That would be the quickest way to see what is causing this. If you can upload a sample showing the problem, we can debug it here.

Are there multiple threads involved in your appilcation? If so, please check the Knowledge Base(KB) article link below.

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=78


Intermittant errors can be indications of threading issues. Any calls into the grid must be done on the thread that creates it, and you can use grid.InvokeRequired to check for this.

Thanks,
Haneef

James Mulvey
Replied On October 30, 2006 11:41 AM

No multiple threads involved.
Have debugged through and tracked down the issue:

If a Refresh() is fired on the grid during an edit commit (i.e. as a result of binding) then the grid stacks.
Looks like the Refresh() ought to have some check for Grid.Updating.

Administrator [Syncfusion]
Replied On October 31, 2006 12:17 AM

Hi Jamulvey,

Is it possible for you to upload us more details or modify the browser sample to reproduce the issue here? So we can debug the issue as early as possible.

Thanks for your interest in our products.

Best regards,
Haneef

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.

;