Export to CSV issue

Hi,

I have created a slice and using action method I have added the export to CSV option for the slice. In slice I am able to determine the only columns I want to export but even though the export to CSV option is added on inline display,instead of just exporting data only that customer the entire table data is exported.

Please let me know how can I export data only per customer wise?