A better option would be to make use of the Matrix dataregion than the Table control. When using the Matrix Dataregion, the cells with same values are merged automatically. You may refer to the documentation for further clarification and implementation.
Regards, Mohita