當GridView的PageSize > PageCount時,仍要顯示Pager的作法
當Gridview的PageSize > PageCount時,
會強制使Pager消失。
這對自訂的CumtomPager來說,若Pager上可以自行調整PageSize,可能會導致PageSize變大而無法縮小回來。
有個很炫的作法,只需要重新覆寫PageCount的屬性,針對當CreateChildControl()呼叫時,對PageCount動手腳,
即可讓Pager顯示。


















End Get

blog 與課程更新內容,請前往新站位置:http://tdd.best/