How do you bind data with a datagrid...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello everybody

How do you bind data to a datagrid? I just want the data entered into the grid to be save when the user is done.


Thanks
Mike
 
Hi Mike,

The binding is by instance
mydatagrid.datasource = ds.tables(0)

But to save it to the database you need
xxxDataAdapter.Update which has the proper commands insert, delete and
update or which commands are made by the xxxCommandBuilder

I hope this helps?

Cor
 
Back
Top