[Solved] Listbox automatically updated when pressed Add button [closed]


I’ll make a guess and assume you are working with Winforms. 🙂

In your button click handler you can either:

  1. add the record as a new DataRow or
  2. call the table adapter’s Fill method again.

If you choose the first way (most performant but might not suit your case), the following MSDN article can help you:

How to: Add Rows to a DataTable

Also, you may find helpful to review some of the basics concepts of DataSet and general databinding in Winforms.

I hope you find this information useful.

solved Listbox automatically updated when pressed Add button [closed]