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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.