Data grid vertical lines

I want to specify my question after further digging and finding the following post from pre data grid times which gives an idea of what the data grid seems to be modeled after:

So my question is: Is there a way I can change the html class of a data grid column to add left and right borders?

.border-left-and-right{
   border-right: 2px solid;
   border-left: 2px solid;
}

I was able to achieve this based on the example that Meredydd had so kindly provided in the original post (see link below) but I was hoping there was a way around rebuilding the whole data grid component from scratch just in order to set two borders of a column?

This is what I’m looking for:

Thank you in advance for answering my question or any idea on how else to achieve this!