DataForCell - cCJGridDataSource
Returns the datasource value for the passed row and column
Type: Function
Return Data Type: String
Parameters
| Parameter | Type | Description |
|---|---|---|
| iRow | Integer | The row index |
| iColumn | Integer | The column index |
Syntax
Function DataForCell Integer iRow Integer iColumn Returns String
Call Example
Get DataForCell iRow iColumn to StringVariable
Description
DataForCell returns the value of any row / column combination. It is called when the grid needs to display data. The row number passed is the row of the datasource array. The row and value must exist in the datasource array or an error will be raised.
You will rarely need to use this. When working with data within the grid, you can use the cCJGridColumn object methods SelectedRowValue and RowValue to get values. If you need to work with the entire set of data, it is probably easier to get the entire datasource array using the DataSource method.
You will never send this message and you would only augment it if you were creating your own datasource class. Even then, you are not likely to use it.
Return Value
Returns the value for row and column index.