Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
695
The best way to modify individual cell borders
posted

I want to modify cell borders for partial rows, such that on merged rows, I want to see a dotted bottom or top border instead of a solid one. There seems to be no way to do this in InitializeRow or InitializeLayout. Instead, I can modify cell borders in the draw filter. Is there some way to know which cells are part of  rows that have merged columns, other than to track it manually, myself? Is this the best way to modify cell borders?

 

Thanks

 Greg 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

     Hi Greg,

        I would advise against trying to modify the borders. Modifying cell borders is extremely coplicated, because a cell does not draw it's own borders, it usually only draws one or two sides and relies on the adjacent cells to draw the other borders.

        If you really want to try it, you would need to use a DrawFilter and somehow determine which sides to draw. I think you might be able to determine this using the drawParams.Element.BorderSides property, but I'm not 100% sure this will work - I haven't tried it.  

Children
No Data