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

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

What connection type are you using?

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

Some connection types include:

1)OleDB
2)SQLClient
3)ADO
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.