GridView的分页 - 第一,最后,下一步,previous [英] GridView Paging - First, Last, Next, Previous
本文介绍了GridView的分页 - 第一,最后,下一步,previous的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是有可能添加
首先,去年,接下来,previous选项到GridView分页?我似乎无法弄清楚。所有我能得到的数字和去年>>和<<对于第一...
解决方案
设置PagerSettings节的PageText属性值:
< ASP:GridView控件ID =GridView的=服务器AllowPaging =真>
< PagerSettings模式=下一步previousFirstLastFirstPageText =第一previousPageText =previousNextPageText =下一步LastPageText =最后/>
< / ASP:GridView的>
您可以在设计器中设置从属性窗口中的这些价值观太..
is it possible to add
"First, Last, Next, Previous" options to the gridview paging? i can't seem to figure it out. all i can get are numbers and >> for last and << for first...
解决方案
Set the value of the PageText properties of the PagerSettings section:
<asp:GridView ID="gridView" runat="server" AllowPaging="True">
<PagerSettings Mode="NextPreviousFirstLast" FirstPageText="First" PreviousPageText="Previous" NextPageText="Next" LastPageText="Last" />
</asp:GridView>
You can set these values from the Properties window in the designer too ..
这篇关于GridView的分页 - 第一,最后,下一步,previous的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文