BorderStyleDash Issue

2 posts, 0 answers
  1. Red Ross
    Red Ross avatar
    3 posts
    Member since:
    Oct 2011

    Posted 26 Feb 2014 Link to this post

    I am trying to put a dotted border around the selected row. It seems that if I choose "SingleBorder" with element state GridDataRowElement.IsSelected.IsCurrent.HotTracking, the border does not appear until to row is selected a second time. If I choose "FourBorders" it works fine but I always get a solid border when BorderDashStyle is set to anything other than solid. It does not appear that you can use the BorderDashStyle with "FourBorders" selected - only "SingleBorder" works with BorderDashStyle. Any thoughts?
  2. Dimitar
    Dimitar avatar
    2918 posts

    Posted 03 Mar 2014 Link to this post

    Hi Robert,

    Thank you for writing.

    Please note that in order this border to be applied to the current row you need to set it to the IsCurrent state as well. This is necessary because when you are starting the application the HotTracking state is false.

    Also the DashStyle property is taken under consideration only when BorderBoxStyle is set to SingleBorder. This is the default by design behaviour and it cannot be overridden.

    Please let me know if there is something else I can help you with. 

Back to Top