SetFields( ) method
(Windows only; GUI for .NET only)Specifies which columns are bound to a ProBindingSource instance, exposing them for bound .NET controls. You use these method overloads before you bind a data source object to a previously unbound ProBindingSource instance.
Note: Do not use this method on a ProBindingSource that is already bound to a data source object. The ProBindingSource throws a .NET exception if this method is used after binding to a data source object.Return type: VOID
Access: PUBLIC
Applies to: Progress.Data.BindingSource class
include-fields
A CHARACTER expression that evaluates to a comma-separated list of fields in the ABL data source object to bind to the ProBindingSource. To include all fields, specify an asterisk (“*”) ininclude-fields
. To include all but a few fields, specify an asterisk (“*”) ininclude-fields
and a comma-separated list of fields to exclude inexcept-fields
. Ifinclude-fields
contains specific fields,except-fields
is ignored.When including fields for a ProDataSet object, you must specify a comma-separated list of fields to display in display order and qualify the field names with their buffer name. For example:
You must specify at least one field from each table in the hierarchy to be displayed.When including fields for a query or a join query, you must specify a comma-separated list of fields to display in display order and you should qualify ambiguous field names with their buffer name.Do not specify a RAW temp-table or database field ininclude-fields
. If you explicitly specify a RAW field, the AVM generates a run-time error. If you specify an asterisk (“*”) to include all fields and there is a RAW field in the table, the AVM excludes it automatically even if it is not specified inexcept-fields
.except-fields
A CHARACTER expression that evaluates to a comma-separated list of fields in the ABL data source object to exclude from binding to the ProBindingSource. You can specify fields to exclude only wheninclude-fields
contains an asterisk (“*”). If you do not have any fields to exclude, you must specify the empty string (“”). Ifinclude-fields
contains specific fields,except-fields
is ignored.parent-buffer-name
A CHARACTER variable that represents the name of a parent buffer in a ProDataSet object. This corresponds to the top-level table displayed in a hierarchical control (such as a grid or a treeview). If the data source object is not a ProDataSet, this parameter must be the empty string (“”). If you specify a name and then bind to another type of data source object, the ProBindingSource throws a .NET exception.parent-buffer-hdl
A HANDLE variable that represents the handle to a parent buffer in a ProDataSet object. This corresponds to the top-level table displayed in a hierarchical control (such as a grid or a treeview). If the data source object is not a ProDataSet, this parameter must be the empty string (“”). If you specify a handle and then bind to another type of data source object, the ProBindingSource throws a .NET exception.The following code fragment shows the correct sequence for using this method:
See also: Handle property
OpenEdge Release 10.2B
|