Auto-update DataGridView

  • Thread starter Thread starter Peter A
  • Start date Start date
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?
 
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.
 
Back
Top