Alex Gordon
Alex Gordon

Reputation: 60871

c# setting datasource to datagridview, updating source datatable

i have a datagridview whose datasource is attached to a datatable

how do i update the datatable and then make sure to refresh the datagridview to reflect the changes in the datasource? or do i need to do this at all?

Upvotes: 0

Views: 576

Answers (1)

Jeff Ogata
Jeff Ogata

Reputation: 57823

You shouldn't need to do this. If you delete or update a row in the datatable, the bound datagridview should update its display to reflect the changes.

Upvotes: 2

Related Questions