Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. .net 2 BindingSources to same DataTable

.net 2 BindingSources to same DataTable

Scheduled Pinned Locked Moved ASP.NET
csharpwpfwcfquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rjto
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • R rjto

      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

      D Offline
      D Offline
      David Mujica
      wrote on last edited by
      #2

      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

      R 1 Reply Last reply
      0
      • D David Mujica

        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

        R Offline
        R Offline
        rjto
        wrote on last edited by
        #3

        Thanks, you are correct, BindingSource is probably specific to win forms and not one of the many shared classes with asp.net. I will repost in the win dev area, this problem is specific to the BindingSource implementation.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups