Using the Data Form Wizard

Visual C# .NET includes a tool to help introduce you to ADO.NET—the Data Form Wizard. In this section, you're going to use the Data Form Wizard to create a form that's bound to the same database you used in the previous example. This form will show the records in the database, and provide for updating the underlying data as well.

Start by creating a new Windows Application titled Data Form Example. The Data Form Wizard is run by adding it to your project as a form template. Follow these steps:

1.
Choose Project, Add Windows Form to display the Add New Item dialog box.
2.
Click the Data Form Wizard icon.
3.
Change the name to fclsDataForm.cs (see Figure 21.4), and click Open to start the wizard.
Figure 21.4. The Data ...

Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.