How to refresh a cascade of BindingSource after a dataset update

staik

New member
Joined
Dec 5, 2007
Messages
1
Programming Experience
5-10
Hi everybody,



In my Winform, I've got 3 BindingSources linked like this:



DataSet

|_________ BindingSource1

(DataSource=DataSet, DataMember=Table1)

|__________________ BindingSource2

(DataSource=BindingSource1 , DataMember=Relation Table1-Table2)


|____________________ BindingSource3 (DataSource=BindingSource2 , DataMember=Relation Table2-Table3)


Everything works fine when displaying



I'm adding a record on table 3, using Table3.Rows.Add()



After that DataSet.Table3.Count = 2

But BindingSource3.Count = 1



I've tried the ResetBindings and the ResetCurrent methods at all stages but that won't refresh BindingSource3.



Any idea????



Thanks,

Stephane
 
Back
Top