Custom Search in datagrid 2

I have created following microflow for custom search but I need to implement it in DataGrid 2 suggest me the flow ,in order to complete search
1 answers

Assume "X" is your entity for which we need to add custom search , Make a non-persistent entity "A" add a attribute "searchbar "associate that *-* with "X" entity , Later on the page , Call dataview of "A" entity , put the datagrid2 inside that and call over association of entity "X" (*-*) later call the attribute "searchbar" above the datagrid2 , Call an onchange microflow , In the microflow retrieve the list "X" with xpath which is equal to attribute which you are trying to search ("yourattribute" = A/searchbar) you get a list , later put a change object and change the retrieved list