Am am building my first VB.NET 2.0 Windows Forms app. The BindingSource object seems very nice, however I am having a problem that hopefully has a simple answer.
I have a DataGridView control using a BindingSource as the DataSource. So far so good.
I picked which columns to display in the DataGridView, changed the ColumnType and other properties of the bound columns and had a nice looking form.
Then I modified the underlying DataTable to add another column.
The DataGridView automatically was updated to include all of the columns in the DataTable. My previous work was lost.
This has happened a few times with different DataGridView controls that are pointing to various BindingSources.
Now I make a backup of the project before making changes to the DataSet and can restore the form's files from the backup. That doesn't seem like a good long-term solution.
I looked at all of the Properties in the DataGridView. Nothing jumped out at me as a way to disable this automatic updating.
What am I missing?