在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
public class DefaultPagerLayout:ITemplate
[TemplateContainer(typeof(LayoutContainer))] public ITemplate Layout }
public int CurrentPage
}
private int PagerSequence
}
}
private void GeneratePagers(WebControl control)
}
private void Pager_Click(object sender, System.EventArgs e)
}
private void Update()
}
public bool IsDataSensitive
}
public delegate void PageDelegate(object sender,PageChangedEventArgs e);
public event PageDelegate PageChanged;
public event EventHandler DataUpdate;
private void RaiseEvent(EventHandler e,object sender)
}
<asp:Repeater ID="repeater" Runat="server"> <ItemTemplate> 列1: <%# Convert.ToString(DataBinder.Eval(Container.DataItem,"Column1"))%> <br> 列2: <%# Convert.ToString(DataBinder.Eval(Container.DataItem,"Column2"))%> <br> 列3: <%# Convert.ToString(DataBinder.Eval(Container.DataItem,"Column3"))%> <br> <hr> </ItemTemplate> </asp:Repeater> <cc1:Pager ></cc1:Pager>
<asp:DataGrid ID="Grid" Runat="server"></asp:DataGrid> <cc1:Pager id="PagerGrid" ResultsToShow="2" runat="server" BindToControl="Grid"> <SELECTEDPAGERSTYLE BackColor="Red"></SELECTEDPAGERSTYLE> <LAYOUT> <asp:ImageButton id="First" Runat="server" imageUrl="play2L_dis.gif" AlternateText="首页"></asp:ImageButton> <asp:ImageButton id="Previous" Runat="server" imageUrl="play2L.gif" AlternateText="上一页"></asp:ImageButton> <asp:ImageButton id="Next" Runat="server" imageUrl="play2.gif" AlternateText="下一页"></asp:ImageButton> <asp:ImageButton id="Last" Runat="server" imageUrl="play2_dis.gif" AlternateText="末页"></asp:ImageButton> <asp:Panel id="Pager" Runat="server"></asp:Panel> </LAYOUT> </cc1:Pager>
应用实例:
下载地址二: http://download.csdn.net/source/334554 下载地址一: https://files.cnblogs.com/downmoon/testGrid.rar
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论