【发布时间】:2012-10-22 09:49:49
【问题描述】:
我在 GridView 的 PagerTemplate 中放置了一个 ASP DataRepeater。我需要在我的代码中找到 DataRepeater
我正在尝试这个。
Repeater rptPager = (Repeater)gv_Inbox.BottomPagerRow.FindControl("rptPager");
但这是抛出异常
Object reference not set to an instance of an object.
当我尝试时
GridViewRow row = gv_Inbox.BottomPagerRow;
它返回 Null。
我正在 GridView 中尝试自定义分页。这样我就可以将中继器放置在 GridView 下方并使用分页。但我想将中继器放在 GridView 的底部,即。寻呼机行。那么我该怎么做呢?
你能帮帮我吗?
【问题讨论】:
-
您尝试查找哪个事件 BottomPagerRow?
标签: c# asp.net gridview custompaging