protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
foreach(GridViewRow gvr in this.gvwManageOrgList.Rows)
{
if(gvr.RowType==DataControlRowType.DataRow)
{
gvr.Attributes["ondblclick"] = ClientScript.GetPostBackClientHyperlink(this.gvwManageOrgList,"select"+gvr.RowIndex);
}
}
base.Render(writer);
}
那你就没必要做循环了,直接在DataGird的双击事件里判断他点击的是哪一行就行,循环多次一举