Hi Sweety Kumari,
Configure the Drop-down Filter:
The most effective way to add a filter for an associated entity's attribute (like the Product Line from the Product entity) in a Mendix Data Grid 2 is to use the Drop-down Filter widget and leverage the column's Reference property.
Set the Data source of the filter to the associated entity (Product). Set the Display attribute to the Product Line attribute. This method allows the filter to properly constrain the Data Grid's main entity (RI) based on the selected value from the associated entity (Product).
Why the Text Filter Failed:
Initially tried using a text filter in the column, but it failed because the column was configured with Custom Content. Standard Data Grid filters cannot automatically filter data rendered via Custom Content; they only work on columns directly bound to an Attribute or Reference.