.net 2 BindingSources to same DataTable
-
I have 2 .net forms, each with their own BindingSource which I set to go after the same DataTable. The table is filled early on with 35 rows. One of the BindingSources has a filter set when the form loads, which makes the result set 4 rows. When I go back to the first form, the row count has gone down to 4 - if I set that BindingSource filter to "", the count returns to 35. It looks as if the two binding sources are sharing stuff, where changing the filter on one affects the other. Any explanation for this? I am working around it but would like to understand the mechanism.
Bob
-
I have 2 .net forms, each with their own BindingSource which I set to go after the same DataTable. The table is filled early on with 35 rows. One of the BindingSources has a filter set when the form loads, which makes the result set 4 rows. When I go back to the first form, the row count has gone down to 4 - if I set that BindingSource filter to "", the count returns to 35. It looks as if the two binding sources are sharing stuff, where changing the filter on one affects the other. Any explanation for this? I am working around it but would like to understand the mechanism.
Bob
Maybe I'm confused, but this post is in ASP.NET Web Development. Right? In ASP.NET Web development, there is no BindingSource. (or am I crazy ?) There is SQLdatasource (and other datasources). Is this Post supposed to be in the Windows Development area? If you need help with SQLdatasource, I can offer some assistance; just need a code example. David
-
Maybe I'm confused, but this post is in ASP.NET Web Development. Right? In ASP.NET Web development, there is no BindingSource. (or am I crazy ?) There is SQLdatasource (and other datasources). Is this Post supposed to be in the Windows Development area? If you need help with SQLdatasource, I can offer some assistance; just need a code example. David