O'Reilly logo

Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) by Priti Kalani, Amit Kalani, Kalani Kirk Hausman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Binding Data to the User Interface

The process of data binding involves creating a link between the data model and the user interface. Depending on your application's requirement, you may use different techniques for databinding:

  • Simple data binding

  • Complex data binding

  • One-way and Two-way data binding

  • The Data Form Wizard

Simple Data Binding

Simple data binding involves connecting a single value from the data model to a single property of a control. By default, a new control is unbound. To bind a control, you can add a new Binding object to its ControlDataBindings collection, which is accessed through its DataBinding property. Using the Add method for the Binding class requires the following information:

  • The name of the bound property

  • The data source ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required