回复 21楼iceman的帖子
获取组合 Pager 方法如下,代码中实现了 pager2的获取,另一个分页为 pager1,代码和以下代码相同:
- protected override void Render(HtmlTextWriter writer)
- {
- TableCell pageNextTD = this.FpSpread1.FindControl("pager2") as TableCell;
- Table t = pageNextTD.Controls[0] as Table;
-
- Image gotoFirstPage = t.Rows[0].Cells[0].Controls[0] as Image;
- Image pagePrev = t.Rows[0].Cells[0].Controls[1] as Image;
- Image gotoLastPage = t.Rows[0].Cells[2].Controls[0] as Image;
- Image pageNext = t.Rows[0].Cells[2].Controls[1] as Image;
- base.Render(writer);
- }
复制代码
|