Each cell border setting

How to set all the borders for all cells of a partial line?
The following code cannot set the border of each cell.I will set one by one, but this is too slow.
customBorders: [
{
range: {
from: {row: 0, col: 0},
to: {row: 20, col: 4}
},
left: {width: 1, color: ‘black’},
right: {width: 1, color: ‘black’},
top: {width: 1, color: ‘black’},
bottom: {width: 1, color: ‘black’}
}
],
Do you have a better way?
Thanks in advance!

if this works slow you may try to use plain CSS settings. Do this operation need to be done for any particular event?

Yes.But now, I only have this method.
customBorders:[
{
row: 1,col: 0,
left:{width:1,color:‘black’},
right:{width :1,color:‘black’},
top:{width:1,color:‘black’},
bottom:{width:1,color:‘black’}
} ,
{
row: 1,col: 1,
left:{width:1,color:‘black’},
right:{width :1,color:‘black’},
top:{width:1,color:‘black’},
bottom:{width:1,color:‘black’}
}

],
And,I am very sorry that my English is not very good. I don’t know if I understand the question you asked.

Sorry, maybe I’ve wrote it wrong @704401148

If I would need to change borders in all the cells I would overwrite Handsontable default CSS settings like here http://jsfiddle.net/q2m5e5h3/

Please notice that each cell doesn’t have all the borders only a right and bottom border.

Thank you very much for your help.:微笑:

You’re welcome @704401148 :slight_smile: