Have you looked at List view controls in the app store?
https://appstore.home.mendix.com/link/app/105694/
If you have to use a grid view, there is an older widget that did that. It was really buggy last I tested it in 8 beta, but perhaps you can take what’s there as a starting point for your own custom widget