Same DataSource on Two Controls!

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

I have used a Dataset called dsSuppliers as a dataset on both a ListBox and
a Datagrid.

They show fine and when I click on a row it changes the row in the other
control.

BUT... if I change the field in the datagrid that is also the DisplayMember
of the Listbox, the listbox is not updated... how do I do this? I thought
this would change automatically, am I wrong?

Thanx
/Lars
 
Hi Lars,

The datagrids updating from the datatable find place when you do a rowchange
or when you do a BindingContext(ds.Tables(0)).EndCurrentEdit()

I hope this helps?

Cor
 
Back
Top