Objective Grid: Turning off grid lines for specific columns

Article ID: 198
Last updated: 04 Jun, 2018
Article ID: 198
Last updated: 04 Jun, 2018
Revision: 3
Views: 1705
Posted: 09 Jan, 2001
by Meltreger B.
Updated: 04 Jun, 2018
by Meltreger B.

Problem


How can I draw or turn off grid lines only for specific columns?


Cause



Action


You can remove borders for the specific columns with:

SetStyleRange(CGXRange().SetCols(nFrom, nToCol),
CGXStyle()
.SetBorders(gxBorderRight, CGXPen().SetStyle(PS_NULL)))
);

You might also override GetStyleRowCol() and call style.SetBorders() to change the border at runtime depending on specific criteria. See "Can I outline cells depending on their value?".

This article was:   Helpful | Not helpful
Report an issue
Article ID: 198
Last updated: 04 Jun, 2018
Revision: 3
Views: 1705
Posted: 09 Jan, 2001 by Meltreger B.
Updated: 04 Jun, 2018 by Meltreger B.

Others in this category