Results 1 to 5 of 5

Thread: How to change select query in oledb binding with ListBox ?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    131

    How to change select query in oledb binding with ListBox ?

    Hello, I have a local MsAccess database(called Products, and a table called Products again), and a listbox in my program. I bind the data from my local database to my listbox, and from what I noticed, I see in my program there have been created a DataSet called ProductsDataSet, a BindingSource called BindingSource1 and a TableAdapter called ProductsTableAdapter.

    Which one of these 3 objects do I need to modify to modify the selection query, and then re-bind the data to the listbox again programmatically?

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,481

    Re: How to change select query in oledb binding with ListBox ?

    Personally I wouldn't add the db + all the peripherals in the designer. It can all be done in code + gives easier flexibility.
    I'll post links to some examples in a minute

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,481

    Re: How to change select query in oledb binding with ListBox ?


  4. #4
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,481

    Re: How to change select query in oledb binding with ListBox ?


  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    131

    Re: How to change select query in oledb binding with ListBox ?

    Ok, Thank You, I will check them out and come back at you!

Posting Permissions

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



Click Here to Expand Forum to Full Width