请把div换成panel,这样就可以Panel1.visible = false;panel在客户端显示就是div,结果是一样的
this.gridview1.findcontrol("div1").Style["display"]="none";
style="display:none;"