O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

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

22.8. Creating a Master/Detail View App

Figure 22.28 demonstrates a so-called master/detail view—one part of the GUI (the master) allows you to select an entry, and another part (the details) displays detailed information about that entry. When the app first loads, it displays the name of the first author in the data source and that author’s books (Fig. 22.28(a)). When you use the buttons on the Binding-Navigator to change authors, the app displays the details of the books written by the corresponding author (Fig. 22.28(b)). This app only reads data from the entity data model, so we disabled the buttons in the BindingNavigator that enable the user to add and delete records.

a) Master/Detail app displaying books for the first author in the data ...

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