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. General Programming
  3. C#
  4. loop through a bindingsource

loop through a bindingsource

Scheduled Pinned Locked Moved C#
wpfwcfhelptutorialquestion
4 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.
  • C Offline
    C Offline
    crash893
    wrote on last edited by
    #1

    does anyone know how to loop through a binding source? so far i have been working with the code foreach (DataRowView invoiceRow in invoicebindingsource) { } but what if i only want to check one column? I am also a little unclear on how to address that info in the cell i am currently looking at Thanks for any help you can give

    L 1 Reply Last reply
    0
    • C crash893

      does anyone know how to loop through a binding source? so far i have been working with the code foreach (DataRowView invoiceRow in invoicebindingsource) { } but what if i only want to check one column? I am also a little unclear on how to address that info in the cell i am currently looking at Thanks for any help you can give

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      crash893 wrote:

      cell i am currently looking at

      what does "looking at" mean?

      C 1 Reply Last reply
      0
      • L led mike

        crash893 wrote:

        cell i am currently looking at

        what does "looking at" mean?

        C Offline
        C Offline
        crash893
        wrote on last edited by
        #3

        test or manipulate messagebox.show(something.tostring()) i am also trying to figure out how to do something like if something.tostring() containes stringtext { replace something.tostring with stringreplace }

        L 1 Reply Last reply
        0
        • C crash893

          test or manipulate messagebox.show(something.tostring()) i am also trying to figure out how to do something like if something.tostring() containes stringtext { replace something.tostring with stringreplace }

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          crash893 wrote:

          test or manipulate

          so if replace "looking at" in your first post with "test or manipulate".....

          crash893 wrote:

          I am also a little unclear on how to address that info in the cell i am currently testing

          I struggle to understand your posts. All I can do is guess that you are asking how to access the "columns" in the DataRowView. I really hope this is a school project. Anyway, I recommend you "read" some documentation on DataRowView from the MSDN Library which is available online from Microsoft. Also there are many MANY articles here on CodeProject that contain sample code for working with Database related issues. I would bet some of them show how to access columns of a DataRowView.

          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