Query binding example
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Query binding example
QueryBinding.p uses a
ProBindingSource to bind a query on the Customer table
to a grid. First, the procedure creates the query. Then, it creates
the ProBindingSource. To disable edits, the procedure sets the ProBindingSource's AllowEdit and AllowRemove properties
to FALSE. It does not need to set AllowNew because
adding new rows is disabled by default in the grid's properties.
Finally, it binds the grid to the ProBindingSource through the grid's DataSource property.
|
When the procedure runs, a simple form appears displaying a customer grid, as shown in the following figure.
