Reference Selector in DataGrid Search

Hello Everyone, i need to know how to use reference selector in DataGrid Search area. like i have 3 entities called country, State and City. All are fully associated and working fine when adding or update data. The issue is only about the search item in DataGrid.  Thanks in Advance.
1 answers

You could add a search field (dropdown) and link it with an attribute of the referenced entity (you can use the toolbox to do this).

You need to use an attribute of the associated entity, not the entity itself.