Description:
Can multiple threads safely access the same instance of the XtraGrid?
Also if multiple instances of the XtraGrid are used by multiple threads are there any thread safety issues to be aware of?
Answer:
A visual control has only four methods which are thread-safe: Invoke, BeginInvoke, EndInvoke, and CreateGraphics if the handle for the control has already been created. The XtraGrid's methods should be called from other threads via BeginInvoke. Please refer the How to: Make Thread-Safe Calls to Windows Forms Controls MSDN article to see different thread-safe call techniques.
An application can create multiple instances of forms with the XtraGrid in different threads. There should not be any problem in this case: the grid controls on different threaded forms correctly access shared resources.
See Also:
DevExpress WinForms Best Practices - How to work with frequently updated data, update and load data in non UI threads
Big red X: A control becomes crossed with red lines after an exception
Can I avoid the ArgumentOutOfRangeException when updating the Grid's data
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.