Book Image

Delphi Cookbook

By : Daniele Teti
Book Image

Delphi Cookbook

By: Daniele Teti

Overview of this book

Table of Contents (14 chapters)
Delphi Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using master/details with LiveBindings


When you have a customer with his/her orders or an invoice with his/her items, you have a master/details (M/D) relationship. In this recipe, you'll learn how to use the new LiveBindings technology to show an M/D relationship.

Getting started

As explained in the Embarcadero wiki:

"LiveBindings is a data-binding feature supported by both the VCL and FireMonkey frameworks in RAD Studio. LiveBindings is an expression-based framework, which means it uses bindings expressions to bind objects to other objects or to dataset fields."

LiveBindings is a very nice technology and can be used in VCL applications also, but its main targets are FireMonkey applications. Indeed, it is the only way to do automatic data binding in the FireMonkey framework. If you don't know what LiveBindings is or what its strengths are, I suggest you stop here and read the article in the Embarcadero wiki at http://docwiki.embarcadero.com/RADStudio/XE6/en/LiveBindings_in_RAD_Studio.

What...