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:
Choose Project, Add Windows Form to display the Add New Item dialog box.
Click the Data Form Wizard icon.
Change the name to fclsDataForm.cs (see Figure 21.4), and click Open to start the wizard.
Figure 21.4. The Data ...