找到了一个办法就是通过后台C1GridView1_RowDataBound来给单元格添加弹出窗体事件取出单元格的值
for (int i = 0; i < C1GridView1.Columns.Count; i++)
{
str = e.Row.Cells[2].Text + "$" + e.Row.Cells[3].Text + "$" + e.Row.Cells[n].Text;
e.Row.Cells[n].Attributes.Add("OnDblClick", "ShowDialog('" + Server.UrlEncode(str) + "')");
} |