In my case I use custom filter method. I have my own dropdowns and so on to choose appropriate data then I filter my dataSource call rebind and as a result I can see only filtered rows.
That works fine.
Here is the sample code:
private void BindGrid()
{
var dataSource = AllOrdersReports;
Grd.DataSource = dataSource;
Grd.Rebind();
}
The problem is that When I then push the button with code:
Grd.MasterTableView.ExportToExcel();
All records are exported to excel despite the fact that right now there are only filtered records in the grid.
Any ideas why it behaves like that ?
好了,问题解决了,我也实现了onDataSource需要事件处理程序...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.