只需设定此事件!
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
相关文章
暂无评论...