c# - DataGridView will not update unless the application is restarted -
working in visual studio 2012 c#; , i'm trying implement datagridview. using part of program add records access database, datagridview uses populate information.
i used integrated setup, takes away lot of work far making connection. works fine, datagridview won't show recent changes database unless close application , restart it. once app restarted, works fine , list populates correctly. i've tried refreshing database changing data source null actual source, , neither have worked far.
ideas?
can provide code needed.
edit: code requested:
public void frmviewbook_load(object sender, eventargs e) { datagridview1.datasource = null; datagridview1.datasource = this.accdb.book; this.booktableadapter.fill(this.accdb.book); }
if doing updating manually , not using built-in capabilities of gridview need call databind()
.
Comments
Post a Comment