SetCellEditable - method of object PmTable
Enable/disable the possibility to edit the cell (eventually the whole columns and rows).
SetCellEditable(Row As Long, Col As Long, Value As Boolean)
oTable.SetCellEditable row, col, true
|Row||(Long) If the value is >=0 then it is a index of the row (zero-based index, counted including the fixed part). |
Value -2 means the last row.
Value -3 sets the value to all rows.
|Col||(Long) If the value is >=0 then it is a index of the column (zero-based index, counted including the fixed part). |
Value -2 means the last column.
Value -3 sets the value to all columns.
true - enable editing
false - disable editing
This method is functional only if the value of the Interaction
property is set to 3
Cells editing is disabled by default.
It is not possible to set the value -3
in both parameters Row
; if the value is set in one parameter, then it cannot be used in the other.
The method can also be called in the graphic item events for Web panels
Setting the possibility to edit cells in the 8th column (counted including the fixed part)
oTable.SetCellEditable -1, 7, true