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.

ObjectDisposedException

Thread ID:

Created:

Updated:

Platform:

Replies:

74056 May 29,2008 05:36 AM May 29,2008 09:49 AM Windows Forms 2
loading
Tags: GridControl
aa
Asked On May 29, 2008 05:36 AM

the following message is printed multiple times during the execution of the application.
and I cannot find the cause, could you help ?

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'GridDataBoundGrid'.
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at Syncfusion.Windows.Forms.ReflectScrollBar.UpdateScrollInfo()
at Syncfusion.Windows.Forms.ReflectScrollBar.Syncfusion.Windows.Forms.IScrollBar.UpdateScrollInfo()
at Syncfusion.Windows.Forms.ScrollBarWrapper.InitScrollBar()
catched at Syncfusion.Windows.Forms.ScrollBarWrapper.InitScrollBar() in :line 0
catched at Syncfusion.Windows.Forms.ScrollBarWrapper.InitScrollBar() in :line 0
System.ObjectDisposedException: Cannot access a disposed object.


Sri Rajan [Syncfusion]
Replied On May 29, 2008 07:33 AM

Hi Alex,

Thank you for your interest in Syncfusion products.

The exception is thrown when an operation is performed on the disposed grid. Please check the IsDisposed method of the grid and accordingly handle the situation. For example, to clear the GridBoundColumns, you can follow the below code.


if(!this.gridDataBoudGrid.IsDisposed)
this.gridDataBoundGrid1.GridBoundColumns.Clear();


Is it possible for your to upload a minimal sample that reproduces this issue?. That will help us to analyze this issue further.

Please let me know if you have any further questions.

Best Regards,
Srirajan


aa
Replied On May 29, 2008 09:49 AM

thanks Srirajan
bug located and resolved


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.

;