Skip to content

OnSelectedRowDataChanged - cCJGridColumn

Called anytime an existing cell in the selected row is changed

Type: Event

Parameters

Parameter Type Description
sOldValue String The value prior to the change
sValue String The value after the change

Syntax

Procedure OnSelectedRowDataChanged String sOldValue String sValue

Description

This is called anytime an existing cell in the selected row is changed. This is called when the data source is notified of a change. This event fires only for the column in which data has changed.

This change can be code based (i.e., you call UpdateCurrentValue) or user based (in which case OnEndEdit is called as well). It is not called when data is loaded into the grid and it is not called when a row is inserted or deleted.

There may not be an actual change when this is called. For example, if you call UpdateCurrentValue with the same value, this event is still called.

With DataDictionaries, this is a little more complicated. This event may be fired when a DD Refresh occurs (i.e., the Refresh message is sent to the grid). When the refresh changes a value of the current row, this will be called. It is called when Refresh is changing data in a current row, but is not called when a new record is loaded into the DD (i.e., not called when changing a row refinds the record in the row). This would get called if you found a new parent or if data changed because of a Save or Delete.