Auto-update DataGridView

P

Peter A

I have a DataGridView that is bound to a BindingSource whose data source
is a table in a DataSet. The dataset is filled from an OleDBDataAdapter
which is connected to an Access database.

When a new row is added to the database, I want the DataGridView to
automatically update to show it. Is this possible?
 
E

Earl

Only if you update the dataset when a new row gets added to the Access
database. Look at it another way, the bindingsource knows what the dataset
is doing at all times, but it does not know what the database is doing
unless you tell it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top