0

Is there any possibility to prohibit edit on a single cell of a table? Just to underline - I'm not talking about a grid but about a table control on a form.

Accessing a single cell via <tablecontrol>.cell(col,row) does not provide functions as allowEdit or enable.

j.a.estevan
  • 3,057
  • 18
  • 32
Nico
  • 1,175
  • 15
  • 33

1 Answers1

1

Try to override the method gotFocus on the IntEdit control on the FRM:tutorial_From_Table with the following code:

public void gotFocus()
{
    ;
    intEdit.allowEdit(!(table.column() == 2 && table.row() == 2));

    super();
}

This code does not allow to edit the (2, 2) cell. I hope it will help.

SantaFrost
  • 51
  • 3