Summary


Visual Studio.NET provides you with a whole range of tools for quickly creating applications that connect to databases, requiring only a small amount of code to be written by hand. Throughout this chapter, you looked at several mechanisms for displaying data. From the basic TextBox, to the more advanced DataGridView, they all rely on the power and flexibility of ADO.NET and the BindingContext object inherent to all Windows forms.

In this chapter, you learned:

  • How to browse database objects with the Server Explorer

  • How to add a data source to your VS2005 project to connect to a database

  • How to use VS2005 to add data-bound controls to a form that work "right out of the box" with no handwritten data access code

  • How to modify the properties of a standard control from the Toolbox to bind it to a database field

  • How to create a DataGridView and modify the VS2005-generated code to update the database

Remember, automatically generated code is never quite as efficient as handwritten code, so the techniques you learned in Chapter 24 for writing your own ADO.NET code can be combined with what you learned in this chapter to modify the VS2005-generated code to produce exactly the results you want for your end user and to optimize the performance of the generated code.

This finishes the discussion of databases. In the next chapter you learn about assemblies, which are how the .NET runtime packages your compiled C# code.




Beginning Visual C# 2005
Beginning Visual C#supAND#174;/sup 2005
ISBN: B000N7ETVG
EAN: N/A
Year: 2005
Pages: 278

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net