Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetCellEditable - method of object PmTable

Description:
Enable/disable the possibility to edit the cell (eventually the whole columns and rows).
Syntax:
SetCellEditable(Row As Long, Col As Long, Value As Boolean)
Calling:
oTable.SetCellEditable row, col, true
Parameters:
Row(Long) If the value is >=0 then it is a index of the row (zero-based index).
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).
Value -2 means the last column.
Value -3 sets the value to all columns.
Value(Boolean)
true - enable editing
false - disable editing
Note:
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 and Col; 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.
Example:
Setting the possibility to edit cells in the eight column (counted including the fixed part).
Dim oTable
Set oTable = pMe.Items("/Ax0").Acx
oTable.Interaction = 3
oTable.SetCellEditable -1, 7, true
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice