ProDataSet binding example
- Last Updated: January 17, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
ProDataSet binding example
ProDataSetBinding.p uses
a ProBindingSource to bind a ProDataSet to a hierarchical grid.
First, the procedure creates the ProDataSet. Then, it creates the
ProBindingSource. It binds the grid to the ProBindingSource through
the grid's DataSource property. Finally, it sets
up some text boxes and binds them to display particular fields from
the Customer table.
|
When this procedure runs, a form appears displaying a hierarchical grid and a simple details viewer, as shown in the following figure.

As
discussed in Bind ProBindingSource to ProDataSets, you might need to display parent and child
records in separate grids. MultipleBindings.p binds
two ProBindingSource objects to the same ProDataSet to display parent
and child records in separate grids. The internal procedure, CustPositionChanged,
synchronizes the grids. The main block calls this procedure in response
to the ProBindingSource's PositionChanged event.
The procedure then synchronizes and refreshes the child grid.
|
When this procedure runs, a simple form appears displaying a customer grid and an invoice grid, as shown in the following figure.
