Hi,
I'm hoping someone can help.
I'm slowly learning more about VB.Net but one thing that's confusing me and no amount of reading seems to help is my DataGridView.
I have a DatagridView on a form (created with the VS Wizard) and use the following code which allows me to update the Access DB by updating the DGV table within my form.
The code also allows me to update the DGV on the form if I update the DB manually.
The thing that gets me is if I add a new Field or change an existing Fields name within access, it does not get reflected in the Form.
Is this possible or do I have to delete the existing DGV and run the wizard again to incorporate any Field changes to the Access DB?
Thanks
I'm hoping someone can help.
I'm slowly learning more about VB.Net but one thing that's confusing me and no amount of reading seems to help is my DataGridView.
I have a DatagridView on a form (created with the VS Wizard) and use the following code which allows me to update the Access DB by updating the DGV table within my form.
The code also allows me to update the DGV on the form if I update the DB manually.
VB.NET:
Me.Validate()
Me.Table2BindingSource.EndEdit()
Me.Table2TableAdapter.Update(Me.Database3DataSet.Table2)
Me.Table2TableAdapter.Fill(Me.Database3DataSet.Table2)
DataGridView1.DataSource = Table2BindingSource
DataGridView1.Refresh()
The thing that gets me is if I add a new Field or change an existing Fields name within access, it does not get reflected in the Form.
Is this possible or do I have to delete the existing DGV and run the wizard again to incorporate any Field changes to the Access DB?
Thanks