如何在嵌套Gridview中使用PageIndexing,selectedPageIndexing [英] how to use PageIndexing, selectedPageIndexing in Nested Gridview

查看:63
本文介绍了如何在嵌套Gridview中使用PageIndexing,selectedPageIndexing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嵌套gridview页面索引..问题....





protected void GridView1_PageIndexChanging(object sender,GridViewPageEventArgs e)

{

display();

GridView1.PageIndex = e.NewPageIndex;





}





指数超出范围。必须是非负数且小于集合的大小。

参数名称:index。



我将使用什么代码..改进这个编码并解决索引超出范围的问题。



和..我可以提供按钮的方式......作为第一,最后,巢,以前....带数字...... 1,2,3,4,5,.... n



plz发送给我特定的和最多的标记代码.....



Nested gridview page index..problem....


protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
display();
GridView1.PageIndex = e.NewPageIndex;


}


Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index.

what code i will use...to improve this coding and solve the problem of Index was out of range.

and..how can i provide buttons also ...as First, last , nest, previous....with numbers..1,2,3,4,5,....n

plz send me specific and upto the mark code .....

推荐答案

查看好的例子你可以跟进



http://aspsnippets.com/Articles/Collapsible-Nested-GridView-with-Paging-using-ASPNet.aspx [ ^ ]
See the good Example you can follow up

http://aspsnippets.com/Articles/Collapsible-Nested-GridView-with-Paging-using-ASPNet.aspx[^]


这篇关于如何在嵌套Gridview中使用PageIndexing,selectedPageIndexing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆