This example demonstrates how to hide vertical grid lines for specific columns by handling the grid.Paint
event (draw vertical lines with cell background color).
Note
Alternative Method: Set the ShowVerticalLines property to
DefaultBoolean.False
to hide all vertical lines, and draw vertical lines inside certain cells by handling the CustomDrawCell event.
- ColumnLineHelper.cs (VB: ColumnLineHelper.vb)
- Form1.cs (VB: Form1.vb)