代码之家  ›  专栏  ›  技术社区  ›  user366312

ASP.NET-GridView编程单元格编辑(帮助!)

  •  0
  • user366312  · 技术社区  · 16 年前

    是否有人可以向我提供有关如何使用CommandField和普通CRUD操作(即不使用SqlDataSource)以编程方式编辑和更新GridView单元格的任何web链接?

    你可以看看 this post this post also

    1 回复  |  直到 8 年前
        1
  •  1
  •   Muhammad Akhtar    16 年前

        ((Label)grd.Rows[e.RowIndex].Cells[0].FindControl("lblID")).Text = "your new cell text";
    

    其中单元格[0]=您的单元格索引