How can I update a datagrid?

0

I want to update a datagrid , maybe you can only with this code:

this.almacenTableAdapter.Fill(this.almacenDataSet.almacen);

I want to update the datagrid after having made a modification or adding a new record to the database.

    
asked by Macx 13.06.2018 в 19:16
source

1 answer

0

You could try to empty the datagrid and then refill it

dgridview.datasource = null;
dgridview.Databind();
    
answered by 13.06.2018 в 20:11