Completing the Test Harness
Let’s complete the test harness. We already have our data navigator control on the form. Now we need a control to display and manipulate our data. The best choice is the DataGrid control. Go ahead and drop a DataGrid control on the form. Set the Dock property to Top. Select the navigator control and set its Dock property to Top as well. Oops, the navigator went to the top of the form above the grid! This is the same problem we had before with the buttons. Simply use the Bring to Front or Move to Back commands.
Add two more buttons to the form. Name one cmdUpdate and change its Text property to Update. Name the other cmdCancel and change its Text property to Cancel Changes. If you want, although it is not necessary, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access