如何在asp.net中找出gridview最后一页的索引。 [英] how to find out the index of last page of gridview in asp.net.
问题描述
是否有任何方法或属性可用于查找asp.net中gridview最后一页的索引号?
Is there any method or property is available to find out the index number of last page of gridview in asp.net?
我设计了一个gridview,它允许页面大小为5的分页,我在运行时通过点击"添加新"(在gridview外面)向gridview添加一行,代码如下:  ;
I designed a gridview it allows paging with page size 5 and i am adding a new row to gridview at run time by clicking a "Add New"(which is outside gridview) that code is as follows:
protected void btnAddNew_Click(object sender, EventArgs e)
{
GViewServiceFailnature.ShowFooter = true;
GetServiceFN();
}
按钮,新行正在添加到当前页面(例如:第3页)
但我想添加到最后一页(假设共有5页,目前我在3中并点击"添加"新的"按钮新行应该在第5页而不是在第3页中添加"
请帮助任何人。
非常感谢
K uday
whenever i click "Add New" button, new row is adding to the current page(ex:page 3)
but i want to add to last page(suppose there are 5 pages total,currently i am in 3 and clicking "Add New" button a new row should add in page 5 instead of in page 3)
Please help any one.
Thanks
K uday
推荐答案
我想你错过了asp.net论坛......这不是它,这是Small Basic论坛。
I think you missed asp.net forums... this is not it, this is Small Basic forum.
这篇关于如何在asp.net中找出gridview最后一页的索引。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!