简体   繁体   English

如何更改gwt单元格(可网格化)中的显示值

[英]how to change the display value in a cell (gridtable) in gwt

without touching the value of the list or using field updater, how can you to change the value of a cell in the datagrid. 在不触摸列表值或不使用字段更新器的情况下,如何更改数据网格中单元格的值。

i have found myDataGrid.getColumn(0).getCell().setValue(context, parent, value); 我发现了myDataGrid.getColumn(0).getCell().setValue(context, parent, value); but I dont know what context and parent is 但我不知道背景和父母是什么

you can change the bean's property value which is used with datagrid, then do refresh row. 您可以更改与datagrid一起使用的bean的属性值,然后刷新行。 that will update cell also. 也会更新单元格。

table.redrawRow(absRowIndex);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM