JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Binding Combo Boxes

Combo boxes are complex data-binding controls. Here are the properties you use to bind this control to a data source (for more on these properties, see the In Depth section of this chapter):

  • DataSource

  • DisplayMember

  • ValueMember

You can see an example of data binding with this control in the DataBinding example on the CD-ROM in Figure 21.3, where I've bound a combo box to the authors.au_lname field in the pubs database. For an example using the DisplayMember and ValueMember properties, see "Using the DisplayMember and ValueMember Properties" later in this chapter.

Related solution:

Found on page:

Using the ComboBox Class

314

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor