Objective Grid: Removing borders and grid lines from cells

Article ID: 352
Last updated: 07 Jun, 2018
Article ID: 352
Last updated: 07 Jun, 2018
Revision: 3
Views: 2081
Posted: 10 Jan, 2001
by Meltreger B.
Updated: 07 Jun, 2018
by Meltreger B.

Problem


How can I remove borders (also grid lines) from individual cells?


Cause



Action


Call:

// Apply borders to range
SetStyleRange(range,
CGXStyle()
.SetBorders (gxBorderTop, CGXPen( ).SetStyle(PS_NULL))
.SetBorders (gxBorderLeft, CGXPen( ).SetStyle(PS_NULL))
);

PS_NULL is the NULL pen. This will remove the specific border (and also grid line).

This article was:   Helpful | Not helpful
Report an issue
Article ID: 352
Last updated: 07 Jun, 2018
Revision: 3
Views: 2081
Posted: 10 Jan, 2001 by Meltreger B.
Updated: 07 Jun, 2018 by Meltreger B.

Others in this category