Hi Aquiles,
You can refer to the following answer for your question.
https://community.mendix.com/link/space/app-development/questions/130065
Work Around,
You can simply achieve this by using list view and customize it with same boolean attribute. And list view has all open css formatting to get the look and feel like data grid 2.
Let me know if it works or you need additional support for the same.
Are you sure your $object is the row object? Maybe it's the out wrapped dataview object?