FocusedCol - property of the PmgWTable object
Column index of focused cell (the current cell that has the focus) (zero-based index, counted including the fixed part).
Property access for read and write
In order to make the modification visible after write, it is necessary to call the Draw
If no cell is focused then the property returns the -100
If the -100
value (or obsolete -1
) is set into the property then no cell has focus.
This property is also functional in Web panels
var oTable = pMe.Items("/Table");
var nFocusedCol = oTable.FocusedCol;
// Reading from the property
oTable.FocusedCol = 3;
// Writing into the property