generating dataset

  • Thread starter Thread starter angelina
  • Start date Start date
A

angelina

Hi,

Im trying to follow some instructions in a VB.net
development book and iv been told to select the 'Generate
Dataset' option from the toolbox, under the data menu.
The problem is i cannot see it listed there!!!!

Can anyone help me find this option??

thx in advance.
 
Angelina,
What is it that you cannot see listed? 'Generate DataSet' is not on the
toolbox, Dataset is on the toolbox.

To use "Generate DataSet" you need to have a DataSet added to your project
via 'Project - Add Item - DataSet'. Then under the Schema menu there is a
Generate Dataset option (or you can right click.

To define an DataSet field on your Form, UserControl or Component:
- Open a Form, UserControl or Component in design mode.
- Click 'View - Toolbox' to show the toolbox. The toolbox should be docked
along the side of VS.NET, normally it is on the left side of my VS.NET.
- Click on the 'Data' tab, it should be the first or second tab listed in
the toolbox, I have 'My User Controls' followed by 'Data'.
- Drag 'DataSet' from the toolbox onto the design surface of the item opened
earlier, I have 'Pointer' followed by 'DataSet' on my 'Data' tab of the
Toolbox.
- You should get a dialog box that pops asked if you want a typed or untyped
DataSet, you need to have used the GenerateDataset to get a typed dataset.

Hope this helps
Jay
 
Hiya, For the Dataset generator to work, the form needs Connection and
Adapter objects to be present. Give this a try ...

Open Server Explorer and Drag and Drop the table you are interested in, on
to your form. This should create a Connection and a Data Adapter object on
your form. Now check the Data Menu, Dataset Generator should be enabled ...
 
Back
Top