Hi Priya,
This is indeed possible.
First, create a Non Persistent Entity having the attributes you want to filter on. Put the datagrid in an encapsulating dataview, showing an object of this FilterHelper. To create this object, either create one on navigation as page parameter, or create one using a datasource microflow or nanoflow as datasource.
Next, change the existing datasource microflow for your datagrid to have the FilterHelper as input parameter and apply your logic in the retrieves.
Hopefully you will succeed with these steps!
Kind regards,
Johan