onCellEdited - event of the PmgWTable object
Description:
The event is triggered when cell editing is finished (e.g. by the Enter key).
Parameters:
pMe | (Object) Reference to the PmgWTable object where the event rises. |
pEvent | (Object) Reference to an object describing detailed information about the specific event.
pEvent.Row - ( Long) [ for reading]Row of edited cell (zero-based index, counted including the fixed part).
pEvent.Col - ( Long) [ for reading] Column of edited cell (zero-based index, counted including the fixed part).
pEvent.CellText - ( String) [ for reading] Edited text |
---|
Note:
The event is triggered only if
Interaction property is set to
1,
2 or
3.
This event is also functional in
Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var nRow = pEvent.Row;
var nCol = pEvent.Col;
var val = Pm.ToNumber(pEvent.CellText);
if (val < 10000)
{
pMe.SetCellBackColor(nRow, nCol, "transparent");
}
else
{
pMe.SetCellBackColor(nRow, nCol, "#ffff00");
}
pMe.Draw();
Dim nRow, nCol, val
nRow = pEvent.Row
nCol = pEvent.Col
val = Pm.ToNumber(pEvent.CellText)
If val < 10000 Then
pMe.SetCellBackColor nRow, nCol, "transparent"
Else
pMe.SetCellBackColor nRow, nCol, "#ffff00"
End If
pMe.Draw