I have a static list of data called Services. I also have two BindingSource objects and this list is bounded to both of them:
this.bindingSources1.DataSource = Instance.Services;
this.cbx1.DataSource = this.bindingSources1;
this.bindingSources2.DataSource = Instance.Services;
this.cbx2.DataSource = this.bindingSources2;
When I set the Filter property in first BindingSource object:
this.bindingSource1.Filter = " Id = 2 ";
in cbx1 there is only one object but in cbx2 there are two. How do I set the binding so that setting the Filter property in one BindingSource does not affect the data source on the second cbx?
Do I have to use DataSet and DataTable?
Thanks
If you try set bindingSource to a DataTable and use
DataTable dt=new DataTable();and usedt.DefaultViewto make changes this wont affect data on data table