悟生慧

 

让包含GridView的div或panel的滚动条自己拉到底部怎么做?

http://social.microsoft.com/Forums/es-ES/295/thread/5c7c219c-f41f-49ca-b74d-ef71c6d2f06b

自行解决,

 function afteradd() {
                        var div = document.getElementById('gvdiv');
           
            div.scrollTop = div.scrollHeight;
        }

 

增加完行后执行

 ScriptManager.RegisterStartupScript(this, this.GetType(), "", "<script language='javascript'>afteradd();</script>", false);

posted on 2012-03-22 10:50  悟生慧  阅读(570)  评论(0编辑  收藏  举报

导航