WindowsForm - Dataset databinding

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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,
kk
 
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
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

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