WindowsForm - Dataset databinding



I used the designer in Visual Studio 2005 to create a dataset data source.
I dragged a table to a form and thereby got BindingSource and dataset
instances created for me.
Later I had to add another table to the data source.
In the designer generated code the new table seems to be created exactly as
the old one, but it won't compile - error message states the new table
doesn't exist.
But it does!
Do I have to re-create the whole dataset?

Any tips appreciated!

Best regards,

Bob Powell [MVP]

The data binding wizard generates code depending on the structure of
your database so yes, you need to re-do the drag and drop generation of
the code.

The alternative of course is that you write all that stuff by hand..

Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting

Find great Windows Forms articles in Windows Forms Tips and Tricks

Answer those GDI+ questions with the GDI+ FAQ

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question