Posted 30 September 2021, 12:30 pm EST
I am working on flexgrid and using flexreport for my reporting. I need help with filtering flexreport like filtering in flexgrid. Any way out.
Forums Home / ComponentOne / WinForms Edition
Posted by: maximusdebois on 30 September 2021, 12:30 pm EST
Posted 30 September 2021, 12:30 pm EST
I am working on flexgrid and using flexreport for my reporting. I need help with filtering flexreport like filtering in flexgrid. Any way out.
Posted 1 October 2021, 5:14 am EST
Hi,
As we understand, you want the same data in the FlexReport as the data present in the FlexGrid after filtering. You can achieve that by handling the AfterFilter event of the FlexGrid and then creating a new data table containing only visible rows and then use this data table as the RecordSet of the FlexReport. So when you filter the flex grid, your report will show the filtered out data. Please refer to the sample attached.
If you meant something else or have any issues, please let us know.
Regards
Avnish
FG_to_FR.zip
Posted 6 October 2021, 6:47 am EST
Thank you