O'Reilly logo

ADO.NET Programming in Visual Basic™ .NET by Bob Howell, Steve Holzner

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 to Other Objects (Arrays, Lists, etc.)

In addition to DataTable and DataViews, we can bind controls to simple arrays and list objects. A list object is any object that implements the IList interface. Besides the array, some other objects that implement the interface are the DataView, the ArrayList, and the CollectionBase (from which all collections are derived). So you see that we can bind controls to many more objects than we could in VB 6. You can also create your own bindable object just by implementing the interface yourself

To demonstrate this, let’s create a new project, ADOBook08-02. Add controls to the default form to make it look like Figure 8.10.

Figure 8.10. Bound array form.

Binding to a single-dimension array is really ...

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