Gary,
There is no reason to cut and paste this. Those classes are available
to you, you just have to make sure that you have the right namespace and
type name. You should note that some of the table designer classes are
actually nested classes (although I think it is the tables themselves, and
the table adapters, I forget).
All you have to do is get the data adapter with your query, and then run
it. The class is in there somewhere. Look for something with
"TableAdapter" in it's name.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<ga********@myway.com> wrote in message
news:11********************@f14g2000cwb.googlegrou ps.com...
I have foudn a file called: betadataset.designer.cs
the table i'm using is called beta, so i think this might be the file
you reference.
I can double click this file and code is displayed.
I tried to copy all of this and paste it to the code that appears when
i double click on the button on my form, but that seems to have made
things worse, and now my form doesn't display properly.
I don't seem any closer to achieving what I need to achieve.
I have a form. This form displays records from my table. I have dragged
and dropped the text boxes to display the records onto the form, from
the data source window. When i run my app the records are displayed
fine.
All i want to do is add a button, that runs an sql query so that only
the records that match the query are displayed!!!??!
please how do i do this?