LiveBindings.BindGridLinkVCL Sample

From RAD Studio Code Examples
Jump to: navigation, search

This sample project demonstrates the use of a TBindGridLink.

Location

You can find the BindGridLinkVCL sample project at:

Description

This sample demonstrates the use of a TBindGridLink.

This sample uses LiveBindings to bind a TDBNavigator with a TStringGrid and other controls.

How to Use the Sample

  1. Navigate to Start | Programs | Embarcadero RAD Studio Rio | Samples, go to Object Pascal\LiveBindings\bindgridlink\vcl, and open BindGridLinkVCLProject.dproj.
  2. Press F9 or choose Run > Run.
  3. When you run the application, the main window displays the visual components of the sample. Initially, the components display the first item of the dataset.
  4. Use the TStringGrid to navigate through the dataset.
  5. Ensure the Active TCheckBox is checked to navigate through the dataset also using the TDBNavigator.
  6. See how the rest of the visual components update when navigating through the dataset.

Files

File Contains

BindGridLinkVCLProject

The project itself.

GridLinkFormUnit1

The main form where the components are located.

Readme.html

Basic information about this sample.

Implementation

  • Use the TDBNavigator or the TStringGrid to navigate through the dataset. Ensure the Active TCheckBox is checked to navigate through the dataset using the TDBNavigator.
  • TBindingsList is used to create managed binding among the different components.
  • The TImage displays the image of the selected fish.
  • The two TEdit and the TLabel display the Category of the selected fish within the dataset.
  • TBindGridLink is used to bind the TStingGrid and the TBindSourceDB.

Uses

See Also

Personal tools
Assistance