This is a migrated thread and some comments may be shown as answers.

INotifyPropertyChanged thread safe binding

1 Answer 184 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Martin Gartmann
Top achievements
Rank 2
Martin Gartmann asked on 12 Mar 2018, 10:06 AM

Dear support,

i my application in use two classes who implements  INotifyPropertyChanged to reflect the changes on them automaticly in gridview.

These is working quit nice, when using the gui thread.

my application is listening to multiple comports and starts adding new entry's from another thread to this classes.

INotifyPropertyChanged of courses raises an update for the gridview, so that the grid raises an exception because of the wrong thread

where must in place the invoke to make this call thread safe. in the form itself or on the gridview.

Thank you

Martin Gartmann

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Mar 2018, 01:46 PM
Hello, Martin,

Thank you for writing.  
 
Note that all UI controls are not thread safe controls in the whole Windows Forms platform (not just Telerik controls, but all controls out there). Here is an article on MSDN, describing how to make thread-safe Winforms UI application. This means that any control from the Telerik UI for WinForms suite is not thread safe as well and cannot be used outside the main UI thread. You should use an Invoke to update the controls in cross threading scenario.

I hope this information helps. Should you have further questions I would be glad to help. 
 
 Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Martin Gartmann
Top achievements
Rank 2
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or