- Tools and Technologies Used
- DataSet vs. Typed DataSet
- Creating a Typed DataSet
- Sample Application Introduction
- Creating a Web Application Using a Typed DataSet
- Summary
Sample Application Introduction
When creating a sample application to show the real use of Typed DataSets, there are as many possibilities as there are different types of database-driven applications. This can be a simple console application that just displays all the records of a table or from multiple tables bounded with relations and constraints (if we created a Typed DataSet by dragging more than one table and setting up the relations and so on), at the same time enabling record editing.
Or, this can be a Windows application that does the same thing in a special layout set by the programmer using primitive elements such as "Labels" and "Textbox", or using DataGrid to leave most of the layout work to Windows itself. There is also a good possibility that a Web application can be created using Typed DataSets, but in our application we will concentrate on a more complex application using Typed DataSets. Now we will start to work with our application.
Our application is a bit complex (it's really only complex if you are not familiar with the events supported by DataGrid), but not in terms of using a Typed DataSet instead of the ASP.NET DataGrid control. In this application, we will use a DataGrid to show the Employees table. Of course, we'll use a Typed DataSet, and we'll do some handy things at the time data is bound to the DataGrid. So let's start with our sample application.