SfDatagrid Loop over filtered lines in same order

Hello

I use the syncfusion sfdatagrid and have set a filter on the field Status and also put  a sort order on field Ext. OrderID. See Sample1.zip in attachment please...
How can i loop in the same order on these filtered lines?

Thanks
Wheel   

Attachment: Sample1_3a5aae4.zip

1 Reply

MA Mohanram Anbukkarasu Syncfusion Team July 6, 2018 12:23 PM UTC

Hi Chris, 
 
Thanks for contacting Syncfusion Support. 
 
You can loop through the filtered records in the same order as displayed in the view by using the SfDataGrid.View.Records collection. Please refer to the below code example and sample from the given location, 
 
Code Example: 
 
foreach (var item in this.sfDataGrid.View.Records) 
{ 
    //Do  your customization here. 
} 
 
 
Regards, 
Mohanram A. 


Loader.
Up arrow icon