Team LiB
Previous Section Next Section

Chapter 30. Windows Forms Data Binding

IN BRIEF

In this section of the book, you have been learning about and experimenting with ADO.NET. You have seen how the DataSet works, including how relationships can be established between multiple tables within a single DataSet and how you can create strongly typed DataSets from XML schema information. If you've been reading the chapters in order, you have also seen how to combine a DataSet and a data adapter to a linked system that automatically pushes changes made to the DataSet back to the original data source through either stored procedures or SQL statements such as INSERT, UPDATE, and so on.

All of this is incredibly useful information, but it doesn't do anyone any good if the user never sees all of this powerful data access. If the user interface doesn't take advantage of all the various features of ADO.NET, the user won't have benefited at all. This chapter shows you how to create compelling, data-driven user interfaces with ADO.NET using Windows Forms technology.

WHAT YOU NEED

REQUIRED SOFTWARE

.NET Framework SDK v1.1

Visual Studio .NET 2003 with C# installed

RECOMMENDED HARDWARE

PC that meets .NET SDK minimum requirements

SKILLS REQUIRED

C# and .NET familiarity


WINDOWS FORMS DATA BINDING AT A GLANCE

Data Binding Overview

613

  
 

Introduction to Windows Forms Data Binding

613

Complex Data Binding

616

   

One-Way and Two-Way Data Binding

616

 

Simple Data Binding

613

  
     

Data Binding Mechanics

616

  
 

The BindingContext Class

617

The PropertyManager Class

620

 

The CurrencyManager Class

617

  

Data Binding Samples

621

  
 

Simple Binding

621

DataGrid Binding

622

 

Binding to a ComboBox

622

  

Advanced Binding Samples

625

  
 

Header/Detail Forms

625

Cascading Header/Detail

628

Summary

632

  


    Team LiB
    Previous Section Next Section