|
下面是更新一个单元格的值:
- // 更新某个单元格的值
- var updateScript = Grid_Sru.GetUpdateCellValueReference(e.RowIndex, "Price", "21");
- updateScript = "F.noEvent(function () {" + updateScript + "});";
- PageContext.RegisterStartupScript(updateScript);
复制代码
当然你可以更新多个单元格的值:
- // 更新某个单元格的值
- var updateScript1 = Grid_Sru.GetUpdateCellValueReference(e.RowIndex, "Price", "21");
- var updateScript2 = Grid_Sru.GetUpdateCellValueReference(.。。。。。。);
- var updateScript = "F.noEvent(function () {" + updateScript1 + updateScript2 + "});";
- PageContext.RegisterStartupScript(updateScript);
复制代码
|
|