1.11M Members

Update Bound Listbox

 
0
 

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

 
1
 

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

What connection type are you using?

 
0
 

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

Question Answered as of 1 Year Ago by Begginnerdev
 
0
 

Some connection types include:

1)OleDB
2)SQLClient
3)ADO
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article