BBjWindow::addDataAwareGrid
Description
Creates a data aware grid control in the BBjWindow.
Syntax
Return Value |
Method |
---|---|
addDataAwareGrid(int ID, int rowID, int colID, number x, number y, number w, number h, int channel, string template) |
|
addDataAwareGrid(int ID, int rowID, int colID, number x, number y, number w, number h, string flags, int channel, string template) |
|
addDataAwareGrid(int ID, number x, number y, number w, number h, int channel, string template) |
|
addDataAwareGrid(int ID, number x, number y, number w, number h, int channel, string template, string flags) |
Parameters
Parameter | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID |
A positive integer that will be used to identify the grid. This number must be unique among the controls in the current window. |
||||||||||||||||||||||||
x |
Horizontal position of the upper-left corner of the grid in currently-scaled CONTROL units, relative to the inside of the window containing it. |
||||||||||||||||||||||||
y |
Vertical position of the upper-left corner of the grid in currently-scaled CONTROL units, relative to the inside of the window containing it. |
||||||||||||||||||||||||
w |
Width of the control in current units. |
||||||||||||||||||||||||
h | Height of the control in current units. | ||||||||||||||||||||||||
channel |
Data channel attached to by the grid (see Data Aware Grid Channels for more information). |
||||||||||||||||||||||||
template |
Templated string that contains the field properties for the data channel. |
||||||||||||||||||||||||
flags |
May be empty or a two-byte binary string composed of any hexadecimal addition of the following values:
|
Return Value
Returns the created BBjDataAwareGrid object.
Remarks
The number of rows and columns will be determined by the data channel.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.