We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,608 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Update Bound Listbox

Hi,

I have a listbox on my form that is bound to my SQL table. I have various functions to that table from my from (add rows, delete rows, edit rows). However, after I do one of these functions, the data in the SQL table updates correctly, but the listbox still shows the table values prior to doing that function. How do I update the contents of my listbox with the new values in my SQL table?

I have tried to re-bind the data....maybe I did it incorrectly. I dont have access to my code at the moment, otherwise I would post it...Thanks

2
Contributors
3
Replies
2 Days
Discussion Span
5 Months Ago
Last Updated
4
Views
Question
Answered
Thomas7399
Newbie Poster
14 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

If you are popoulating the listbox with a dataset, you just need to refresh the data.

What connection type are you using?

Begginnerdev
Practically a Posting Shark
892 posts since Apr 2010
Reputation Points: 198
Solved Threads: 149
Skill Endorsements: 9

I got it to work by refreshing the data. Thanks! What do you mean by what connection type am I using?

Thomas7399
Newbie Poster
14 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 5 Months Ago by Begginnerdev

Some connection types include:

1)OleDB
2)SQLClient
3)ADO
Begginnerdev
Practically a Posting Shark
892 posts since Apr 2010
Reputation Points: 198
Solved Threads: 149
Skill Endorsements: 9

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.1545 seconds using 2.68MB