开发者

Access all Data from databound RadGrid?

开发者 https://www.devze.com 2022-12-08 00:37 出处:网络
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

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

精彩评论

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

关注公众号