Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
禁用GWT网格中的特定列_Gwt - Fatal编程技术网

禁用GWT网格中的特定列

禁用GWT网格中的特定列,gwt,Gwt,有没有办法禁用gwt数据网格中的特定列..类似于 myColumn.setDisable(true); 我的目的是防止在datagrid中选择SelectionCell。这应该是不可编辑的 有没有办法做到这一点?您有两个选择: A.您可以选择在特定条件下将元素设置为禁用的元素。这是最接近你想要的,但也可能让你的用户有点困惑——他们可能认为你的桌子坏了 B.您可以使用SelectionCell删除列,并使用TextCell插入列

有没有办法禁用gwt数据网格中的特定列..类似于

myColumn.setDisable(true);
我的目的是防止在datagrid中选择
SelectionCell
。这应该是不可编辑的

有没有办法做到这一点?

您有两个选择:

A.您可以选择在特定条件下将元素设置为禁用的元素。这是最接近你想要的,但也可能让你的用户有点困惑——他们可能认为你的桌子坏了

B.您可以使用SelectionCell删除列,并使用TextCell插入列