How to do it...

Let's start:

  1. Create a new FireMonkey HD desktop application and name the main form MainForm.
  2. Drop two TGrid components onto the form and name them grdPeople and grdEmails. Set the Options.AlternatingRowBackground property to True for both the components. Set the Options.RowSelection to True forgrdPeople.
  3. Drop two TProtypeBindSource components onto the form and name them bsPeople and bsEmails.
  1. Double-clicking on bsPeople shows its field definitions. Using the Add button (the first button from the left-hand side), add four fields, as shown in the following screenshot:
Figure 4.10: bsPeople field definitions
  1. Close the field ...

Get Delphi Cookbook - Third Edition 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.