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

GroupingGrid Threading

Thread ID:





46366 Jul 12,2006 02:55 AM UTC Jul 12,2006 11:40 PM UTC WinForms 2
Tags: Grouping
David Llewellyn
Asked On July 12, 2006 02:55 AM UTC

Hello, I just have a quick question about threading and the grouping grid. I have created a groupinggrid control and a datatable, as the grouping grid datasource, in the main thread of the form. I then launch another thread that adds / removes datarows from the datatable (the grouping grids datasource). I realise that if I need to reference the grouping grid in this thread I will need to use the "InvokeRequired" property and call a delegate. But what I need to know is do I need to check the grouping grids "InvokeRequired" property in order to add or remove any data from the grids datasource (the datatable)? Thanks, David.

Administrator [Syncfusion]
Replied On July 12, 2006 11:39 AM UTC

No, generally you would not need to do this. The groupinggrid has subscribed to certain events on the DataTable that will react to you adding/removing rows to the DataTable outside the grid. But the event handlers within the grid code that handle these actions are protected by InvokeRequired checks that should catch any calls on the wrong thread and direct them to the proper thread.

David Llewellyn
Replied On July 12, 2006 11:40 PM UTC

Thank you Clay for once again providing me with a very timely and concise explanation. You have been a great help.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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