- protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
- {
- if (e.Row.RowType == DataControlRowType.DataRow)
- {
- foreach (TableCell cell in e.Row.Cells)
- {
- cell.Attributes["onclick"] = "window.clipboardData.setData('Text', this.innerText);";
- }
- }
- }
复制GridView单元格内容到剪贴板
最新推荐文章于 2022-07-03 16:38:01 发布