Reputation: 26174
I am using Infragistics UltraGrid with datasouce Windows Bindingsouce. On change, I provide datasouce to Bindingsouce and call DataBinding of UltraGrid. Value in the datasouce of Bindingsouce changes, but that is not reflected in the UltraGrid.
Upvotes: 2
Views: 10861
Reputation: 3777
Also, make sure that whatever class that you are using as your Binding Object implements INotifyPropertyChanged so that when you update the BindingObject at run time it gets channeled to BindingSource which eventually gets picked up by Grid.
i.e.:
BindingList<Foo> lstItems = new BindingList<Foo>;
BindingSource bso = ;
bso.DataSource = lstItems;
Grid.DataSource = bso;
public class Foo : INotifyPropertyChanged
Also depends if you changing the collection outside Grid (at runtime, because if you do, you need to use BindingList<T>
and assign it to BindingSource
Upvotes: 2
Reputation: 17000
Your binding source must raise some event to trigger grid refresh. For example, if you are using BindingList
it should raise the ListChanged
event.
Upvotes: 2