RDTA.PickDP.Extensions.DBDataBinder Control

Binds the fields in a table to the controls in a form. There are two types of bindings:

 

Public Constructors

New

Constructor.

Public Methods

Clear

Clears the data of all the controls and DBGrid columns bound to this control. Does not clear the data from the file.

DeleteItem

Deletes the current item.

Fill

Reads the record from the database and populates the bound controls. The record read is identified by the control bound to the primary key field.

GetCellCausingError

Gets the cell of the first empty mandatory cell.

GetColumnBinderCausingError

Gets the ColumnBinder of the first empty mandatory column of a DBGrid.

GetControlBinderCausingErrror

Gets the ControlBinder of the first empty mandatory control.

GetCurrentItem

Gets a reference to the most recently read item from the table for manipulation prior to writing.

getKeyControl

Gets the column and the grid that contains the primary key used to fill the grid.

MemberwiseClone

Returns a copy of the current instance. For internal use only.

setKeyControl

Sets the column and the grid that contains the primary key used to fill the grid. For internal use only.

Update

Collects all the data contained in the form controls and DBGrid columns and updates the table.

Public Properties

Name

Type

Description

ColumnBindings

ColumnBinder

An array of bound DBGrid columns and fields.

ControlBindings

ControlBinder

An array of bound controls and fields.

Table

Table

A reference to a table control.

 

5