Windows Forms 2.0 increases support for data binding via the new BindingNavigator and BindingSource objects, which will save you a lot of effort. Find out how you can perform sorting and searching tasks using data binding and simplify the display of master-detail relationships in tables.
by Wei-Meng Lee
February 21, 2006
here's a lot of new ground to cover about data binding in Windows Forms 2.0, so it's best to just jump right in. This article assumes you have SQL Server 2005 Express Edition (download here) installed on your computer. I will also use the pubs sample database familiar to most SQL Server developers. Using Visual Studio 2005, create a new Windows application by choosing New Project from the File menu. Click on the Visual Basic (Windows) project type, and select the Windows Application template. Call the new app something like 'Databinding' and click OK.
The first step is to add a new data source to the project. You do so via the Data menu then pick the "Add New Data Source" menu item (see Figure 1).
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!