diff --git a/README.md b/README.md new file mode 100644 index 0000000..38f1420 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ + +[![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) +[![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives) + +# DevExpress VCL Reports - Data Record Filtering in a Report + +This example allows you to select individual dataset records in a DevExpress VCL [Data Grid](https://docs.devexpress.com/VCL/cxGrid.TcxGrid?v=25.2) control and display selected records in a built report using the [Report Viewer](https://docs.devexpress.com/XtraReports/401850/web-reporting/web-document-viewer) dialog. +Source data is stored in a memory-based dataset ([TdxMemData](https://docs.devexpress.com/VCL/dxmdaset.TdxMemData) inherited from the [TDataSet](https://docwiki.embarcadero.com/Libraries/Athens/en/Data.DB.TDataSet) class shipped with the standard VCL library). + +## Testing the example + +Run the sample app and check any records in a table: + +![Data Record Selection](/vcl-reports-selected-grid-records.png) + +Click the **Preview Report** button to display a report containing all selected records in the [Report Viewer](https://docs.devexpress.com/XtraReports/401850/web-reporting/web-document-viewer) dialog. + +![Selected Records in a Sample Report](/vcl-reports-sample-report-with-selected-records.png) + + +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=vcl-filter-report-preview-based-on-grid-selected-rows&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=vcl-filter-report-preview-based-on-grid-selected-rows&~~~was_helpful=no) + +(you will be redirected to DevExpress.com to submit your response) + diff --git a/vcl-reports-sample-report-with-selected-records.png b/vcl-reports-sample-report-with-selected-records.png new file mode 100644 index 0000000..bef6be2 Binary files /dev/null and b/vcl-reports-sample-report-with-selected-records.png differ diff --git a/vcl-reports-selected-grid-records.png b/vcl-reports-selected-grid-records.png new file mode 100644 index 0000000..39e4276 Binary files /dev/null and b/vcl-reports-selected-grid-records.png differ