Home Forums WinForms controls Xceed Grid for WinForms Programmers without Borders Reply To: Programmers without Borders

User (Old forums)
Post count: 23064

Hi There

I have managed to draw a single line, but what I am really after
is 2 lines

However the the following only shows 1 line.

Protected Overrides Sub PaintBorders(ByVal e As GridPaintEventArgs)
Dim blackPen As New Pen(Color.Red, 3)
Dim rect As Rectangle
rect = e.DisplayRectangle
e.Graphics.DrawLine(blackPen, rect.Left, rect.Bottom, rect.Right, rect.Bottom)
e.Graphics.DrawLine(blackPen, rect.Left, rect.Bottom – 5, rect.Right, rect.Bottom – 5)
End Sub

Please advise

Imported from legacy forums. Posted by Soong (had 340 views)