I want to group rows of a datatable and separate each group with a separator like in this image but I can't figure out how to do it.

I would really appreciate if someone tells me how to do this.
I want to group rows of a datatable and separate each group with a separator like in this image but I can't figure out how to do it.

I would really appreciate if someone tells me how to do this.