BBjStandardGrid::setCellListControl
Description
Sets a list control for a BBjStandardGrid cell so that the cell will display as a list button when edited.
Syntax
| Return Value | Method | 
| void | setCellListControl(int row, int column, BBjListButton list!) | 
| void | setCellListControl(int row, int column, BBjListEdit list!) | 
Parameters
| Variable | Description | 
| row | Specifies the 0-based row. | 
| column | Specifies the 0-based column. | 
| list! | Specifies the BBjListButton or BBjListEdit control object to use. | 
Return Value
None.
Remarks
Once the list control is set, it will display in the 
 specified grid cell when editing has begun on a cell. This will allow 
 the user to select an item from the list, or type into a list edit if 
 a BBjListEdit is used. When in display mode, the cell will show the selected 
 item. When getCellText() 
 is used on a cell in the column, it will return the text of the selected 
 item. When setCellText(row,col,text) 
 is used, it will temporarily replace the text from the list control. The 
 object can be manipulated using the methods for the BBjListEdit or BBjListButton 
 control. When changing the content 
of the list, it may be necessary to re-bind the list control to the grid.
Also note that parameter x in the EDITKILL 
 NOTIFY event (code=7) specifies the selected index of the list if 
 the edited cell was a list control. The field will contain the item that 
 the user selected.
When the owner of the parameter does not match the object on which the methods is being called, an !ERROR=208 Multi Thread results. See Accessing Objects From Different Interpreters.
Example
|  | 
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.