Let’s Try It!

If you haven’t already done so, set the TestBed project to be the startup project. Now run the program. The DataGrid should populate with the contents of the Northwind Customer table. Try clicking the navigation buttons. The pointer should move accordingly and the caption should update with Record: n of x (assuming the autoText property is set to True). Notice there is no user-supplied code in the test form. All of this functionality comes from the navigator control (see Figure 11.6).

Figure 11.6. The running test harness.

Click on the Selector column of the grid and move the pointer that way. Oops! The record counter does not ...

Get ADO.NET Programming in Visual Basic™ .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.