Author Topic: Dashed Borders around columns  (Read 309 times)

pbassey

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 36
    • View Profile
Dashed Borders around columns
« on: November 26, 2022, 08:00:54 pm »
Is there any way to put a dashed border line around specific columns?  I see the columnBorders property, but there is no examples of how to use it.

Thanks,
Peter

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Dashed Borders around columns
« Reply #1 on: November 28, 2022, 06:42:29 am »
custom borders can be put around specific columns with help of Range().style() method.

Example:

Code: [Select]
grid.Range("B:B").style("border-left", "1px dotted red");
grid.Range("B:B").style("border-right", "1px dotted red");

columnBorders property is to draw borders around all columns.
« Last Edit: November 28, 2022, 06:54:29 am by paramvir »