GridView双击某行弹出一新窗口

只需设定此事件!
 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        int count = GridView1.Rows.Count;
        string ID = "";
        for (int i = 0; i < count; i++)
        {
            ID = GridView1.DataKeys[i].Value.ToString();
            GridView1.Rows[i].Attributes.Add("ondblclick", "window.open('FlowStationEdit.aspx?ID=" + ID + "','FS_Left','')");

        }
    }






引用网址:http://www.cnblogs.com/anson/archive/2006/05/09/394554.html

你可能感兴趣的:(GridView双击某行弹出一新窗口)