BBjGrid::setFitToGrid
Description
Specifies whether to fit all columns into the displayed width of the BBjGrid.
Syntax
Return Value |
Method |
void |
setFitToGrid(int fit) |
Parameters
Variable |
Description |
|
fit |
Specifies how columns will grow the grid is resized with one of the following styles listed below: |
|
Style Value Constants AUTO_RESIZE_OFF |
Description Turns the auto-resizing of columns off, but the grid will retain proportional values of the columns. |
|
|
AUTO_RESIZE_NEXT_COLUMN
|
Only varies the size of the column after the one manually being resized. |
|
AUTO_RESIZE_SUBSEQUENT_COLUMNS
|
Varies the size of all columns after the one resized. |
|
AUTO_RESIZE_LAST_COLUMN
|
Varies the size of the last column only when any column in the grid is resized. |
|
AUTO_RESIZE_ALL_COLUMNS |
Varies the size of all columns in the grid when one column is manually resized. |
Return Value
None.
Remarks
Using the fit value 0 is equivalent to AUTO_RESIZE_OFF.
Using the fit value 1 is equivalent to AUTO_RESIZE_ALL_COLUMNS.
Use of numeric constants is not recommended. Use one of the constants listed above.
Example
|
See Also
Fit Columns to Window - GRID SENDMSG() Function 29
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.