如何在单击按钮时从radgrid获取页面记录

时间:2011-08-04 05:52:51

标签: c# asp.net asp.net-mvc radgrid

我正在使用Telerik RadGrid.i将数据(即10行)绑定到带有分页的radgrid。分页设置为每页5个。radgrid为Hirarchial模式。

我只有在用户点击按钮时才能获得第一页记录。我需要发送一封mail.how可以检索所有数据

1 个答案:

答案 0 :(得分:0)

RadGridAllocateEmployee.AllowPaging = False
RadGridAllocateEmployee.Rebind()
        'Your code
For Each item As GridDataItem In RadGridAllocateEmployee.MasterTableView.Items
. . . . . . .
Next
RadGridAllocateEmployee.AllowPaging = True
RadGridAllocateEmployee.Rebind()