开发者

Access all Data from databound RadGrid?

Is there are way to access all of the data from a databound RadGrid?

I can acess the data that is currently showing on the RadGrid, but is there anyway to access the data that is bound to the control but not shown?

Say I have 12开发者_运维百科5 records, but only 25 are shown on the page, how do I access the other 100?


I found a solution to the question that works, but I am not sure if there is a better solution than this

for (int i = 0; i < Ragrid.Pagecount; i ++)
{
    RadGrid.CurrentPageIndex = i;
    RadGrid.Rebind;

    foreach(GridDataItem item in RadGrid.Items)
    {
         do stuff
    }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜