I am using devexpress bandedgridview in windows forms , I wanted to create thick borders around band in bandedgridview, from following links I used solution for this
In paint event I am drawing verical lines its working , Problem is When I am scrolling columns vertical lines are appearing.
When I scroll columns get hide but vertical lines are still appearing.
How can I skip drawing vertical line in paint event if I am scrolling?
First band in Grid is having FixedStyle property value FixedStyle.Left So, I checked if bounds.Left of next band columns is intersecting with bounds.Right of the first fixed left band rectangle, I skip drawing vertical lines when checkIntersectBand is true
checkIntersectBand = CType(IIf((fixedLeftBand.Bounds.Right - bandInfo.Bounds.Left) >= 0, True, False), Boolean)