generating dataset

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.
 
J

Jay B. Harlow [MVP - Outlook]

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
 
N

Nice Chap

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 ...
 

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

Top