UpdateDataForSelectedRow - cCJGridDataSource
Updates the datasource with a new column value for the SelectedRow
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| iColumn | Integer | The column to update |
| sValue | String | The new value |
| bUpdateExternalData | Boolean | If True, it pushes the changed value to the DataDictionary |
Syntax
Procedure UpdateDataForSelectedRow Integer iColumn String sValue Boolean bUpdateExternalData
Call Example
Send UpdateDataForSelectedRow iColumn sValue bUpdateExternalData
Description
UpdateDataForSelectedRow is used to update changed values in the datasource. It updates the iColumn in the SelectedRow with sValue. This message is sent by the cCJGridColumn object's UpdateCurrentValue message.
cCJGrid / cCJGridDataSource
The datasource is updated and the SelectedRow's changed state is set. Since there is no external data, bUpdateExternalData is ignored.
cDbCJGrid / cDbCJGridDataSource
The datasource is updated. If bUpdateExternalData is True, the change originated from the grid and the DataDictionary must be updated with the change. If the change originated from elsewhere and the grid was simply notified of the change as a data entry object (DEO), bUpdateExternalData will be False, which means that the DataDictionary object will not be notified. This prevents recursion.
You will never send this message and will probably never augment it. If you create a custom datasource class, this interface must be supported.