1.改寫 GridView 的 PreRender 事件
2.針對 BottomPagerRow,設定顯示狀態
protected void GridView1_PreRender(object sender, EventArgs e) { GridView gv = sender as GridView; if (gv != null) { GridViewRow gr = gv.BottomPagerRow; if (gr != null) gr.Visible = true; } }
參考:http://blog.sumantdubey.com/post/ASPGridView-making-Pager-always-visible.aspx
沒有留言:
張貼留言