Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有可能禁止对表格的单个单元格进行编辑?只是强调一下-我不是在谈论网格,而是在谈论表单上的表格控件。
通过 访问单个单元格<tablecontrol>.cell(col,row)不提供allowEdit或的功能enable。
<tablecontrol>.cell(col,row)
allowEdit
enable
尝试使用以下代码覆盖 FRM:tutorial_From_Table 上 IntEdit 控件上的方法 gotFocus:
public void gotFocus() { ; intEdit.allowEdit(!(table.column() == 2 && table.row() == 2)); super(); }
此代码不允许编辑 (2, 2) 单元格。我希望它会有所帮助。