Click here to Skip to main content
16,010,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,
wonder if someone can help me,
i've got a listbox that displays data from an Access database.
When I add a new item, my listbox does not update until i restart
the program. I've tried using :

((CurrencyManager)LstBx_Supp.BindingContext[LstBx_Supp.DataSource]).Refresh();

and

Dataset.clear()
Dataset.fill(..)

but no luck, please help.
Posted

1 solution

Just to let everyone know,
don't understand it, but it works....
just called the Fill method again asif it loads...


this.suppNameTableAdapter.Fill(this.orderDataSet1.SuppName);

as long as it works...
 
Share this answer
 
Comments
Toli Cuturicu 17-Aug-10 14:11pm    
Reason for my vote of 1
If you can't understand it, it is not an answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900