advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Preparing the Sample Database
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
CoDe Magazine
Subscribe to CoDe Magazine
 

Data Binding in Windows Forms 2.0

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.  


advertisement
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?



© Copyright Component Developer Magazine and EPS Software Corp., 2009
advertisement