我在GridView的PagerTemplate中放置了一個ASP DataRepeater。我需要在我的代碼中找到DataRepeaterGridview BottomPagerRow找不到
我正在嘗試此操作。
Repeater rptPager = (Repeater)gv_Inbox.BottomPagerRow.FindControl("rptPager");
但是當我嘗試
GridViewRow row = gv_Inbox.BottomPagerRow;
返回null這是一個拋出異常
Object reference not set to an instance of an object.
。
我想在GridView中自定義分頁。我可以在GridView下放置Repeater並使用分頁。但是我想把中繼器放在GridView的底部。傳呼機行。那我該怎麼做呢?
你能幫我嗎?
哪個事件你試圖找到BottomPagerRow? – Damith