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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataBoundGrid and threading

Thread ID:

Created:

Updated:

Platform:

Replies:

8553 Nov 11,2003 04:22 PM UTC Nov 11,2003 05:24 PM UTC WinForms 1
loading
Tags: GridControl
damien morton
Asked On November 11, 2003 04:22 PM UTC

I have my own IBindingList implementation, and Im trying to work out how best to handle threading issues. The IBindingList is modified on threads other than the GUI thread, but is not aware of what GUI control it is bound to. Ive tried look at the ListChanged.Target property to see where notifications are being sent to, but notifications are sent to the CurrenyManager, which isnt a Control and has no knowlege of InvokeRequired. Is there a recommended way for handling this situation?

Administrator [Syncfusion]
Replied On November 11, 2003 05:24 PM UTC

The GridDataBoundGrid listens for both IBindingList and currency manager events. What we are doing in the 2.0 grouping code base is protecting such handlers with InvokeRequired checks which should take care of most of these potential problems. We plan to move these checks into the 1.6.x code branch as well, but have not done this yet. So future releases should be easier to manage with respect to multiple threads. To date, most of the people using multiple threads have used our GridControl class in a virtual manner to manage things. There all interaction is done through a few events or overrides which are easy to get at to do this type of InvokeRequired checks. This avoids trying to handle currency manager events and gives a great deal of flexibilty in how things can be done.

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.

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

;