听说给单元格添加属性可以实现 
 e.Row.Cells[1].Attributes.Add("OnClick",string);string该怎么去写,或者还有别的什么方式?

解决方案 »

  1.   

    <script>window.open('xxx.aspx','_blank')</script>
      

  2.   

    呼出一个页面。。protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType != DataControlRowType.Header && e.Row.RowType != DataControlRowType.Footer && e.Row.RowType != DataControlRowType.Pager)
            {
                e.Row.Attributes.Add("onmouseover", "javascript:window.open('details.aspx?id=" + e.Row.cells[1].Text + "','',toolbar=0);");
            }
        }弹框变色
      

  3.   

    e.Row.Cells[0].Attributes.Add("onclick", "window.open('Default.aspx','_blank')");