Home Forums WinForms controls Xceed Grid for WinForms Custom Painting Column Lines

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13988 |

    If you inherits from Xceed.Grid.DataRow you can custom paint the horizontal grid lines by Overriding PaintBorders. Does anyone know if there’s a way of custom painting the Vertical (column?) lines?

    I’ve looked at inheriting from Xceed.Grid.Column but as it doesn’t inherit from VisualGridElement, it doesn’t have a PaintBorders method, or any other Paint methods come to that.

    Are the Column lines painted by the Grid Control itself? If so, what the best way to paint them from there?

    Imported from legacy forums. Posted by bradlads (had 2407 views)

    User (Old forums)
    Member
    Post count: 23064

    Inherit from Xceed.Grid.DataCell, and override PaintBorders.

    Imported from legacy forums. Posted by Tommy (had 258 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks for that, no idea how I missed PaintBorders in DataCell!

    Imported from legacy forums. Posted by bradlads (had 3441 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.