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

gridview not updating

1 Answer 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ralf
Top achievements
Rank 1
Ralf asked on 05 Aug 2010, 05:12 PM
Hi, I bind the gridview in winforms to a generic list with a custom object.
The object implements the INotifyPropertyChanged interface and has the "OnPropertyChanged" event in the setter of almost all properties of said object.
Now the list is being run in a service to update the data and only when scrolling the gridview the gridview is being updated.
Is there a way to have this done automatically? Am I missing something?

Thanks

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 10 Aug 2010, 04:07 PM
Hello Ralf,

There are two conditions that you need to satisfy in order to achieve the desired behavior: 
    1. You must have a list or generic list which implements IBindingList interface
    2. You will need a custom object which implements INotifyPropertyChanged.

Further, if you would like the RadGridView control to be updated automatically, your generic list must be: BindingList<YourType>

I hope this helps. Let me know if I can assist you further.

All the best,
Julian Benkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Ralf
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or