Table group by category group

Hi,
Would it be possible to create a table in this format?
Separating the categories by groups! Allowing to edit only categories.

Note: When adding a category, your group is required! (this is ok!)