Datagrid is outofbox widget. You can do only minimal styling changes.
Merging of cells will not be possible in datagrid.
Try with listview where editing is restricted or try template grid. In both, layout grid can be used. With which more customization per row and cell can be carried out.