dcsimg
Results 1 to 2 of 2

Thread: Iterate through BindingSource that was created from a DataTable

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2010
    Location
    San Marcos, TX
    Posts
    177

    Iterate through BindingSource that was created from a DataTable

    I have a BindingSource who's DataSource was set to a DataTable that I need to iterate through, how do I go about doing that?

    Am I iterating through DataRows of the DataTable? How do I reference those DataRows?

    Any help is appreciated!

  2. #2
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    Re: Iterate through BindingSource that was created from a DataTable

    Foreach (Datarow rw in MyDatatable.Rows)
    {
    //Do what you need to the row here
    messagebox.show(row);
    }

    Parksie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width