Even if lists (TListView, TListBox) are the most appropriate controls for rendering data on mobile platforms, FMX also provides grids, as we saw in Chapter 4, Discovering Lists and Advanced Components. In that chapter, we provided a brief overview of how to manually provide data to grids, while also describing how to customize some of the UI elements of the grids.
If we have a BindSource (that is, a dataset and TBindSourceDB), then we can populate grids via LiveBindings:
As shown in the preceding screenshot, you can simply drag the * box of EmployeeBindSource (a TBindSourceDB instance) to the * box of StringGrid1 (a TStringGrid instance) to see data being rendered through the grid. All the columns will be automatically created as TStringColumn instances by default. You can edit the Columns property of the TLinkGridToDataSource object to manually define which columns to render and which kinds...