Cell border color bug

3 posts, 0 answers
  1. QuizzBox
    QuizzBox avatar
    45 posts
    Member since:
    Jan 2011

    Posted 06 Jun Link to this post


    I've used your demo solution to understand how cell border color errors works.

    I've found a bug if you populate your gridview with enough data to have a vertical scrollbar.

    When you scroll down enough to hide first rows, when you scroll up to see the rows, it seems there's a glitch on some cells like you see in the screenshot.


  2. Dimitar
    Dimitar avatar
    1329 posts

    Posted 08 Jun Link to this post

    Hello Nermond,

    Thank you for writing.

    I was able to reproduce the observed behavior. It is caused because not all changed styles are reset in the CellFormatting event. To solve this you need to add the following code:
    cell.ResetValue(LightVisualElement.BorderBottomColorProperty, ValueResetFlags.Local);
    cell.ResetValue(LightVisualElement.BorderTopColorProperty, ValueResetFlags.Local);
    cell.ResetValue(LightVisualElement.BorderLeftColorProperty, ValueResetFlags.Local);
    cell.ResetValue(LightVisualElement.BorderRightColorProperty, ValueResetFlags.Local);
    cell.ResetValue(LightVisualElement.BorderBottomShadowColorProperty, ValueResetFlags.Local);
    cell.ResetValue(LightVisualElement.BorderTopShadowColorProperty, ValueResetFlags.Local);
    cell.ResetValue(LightVisualElement.BorderLeftShadowColorProperty, ValueResetFlags.Local);
    cell.ResetValue(LightVisualElement.BorderRightShadowColorProperty, ValueResetFlags.Local);
    cell.ResetValue(LightVisualElement.BorderBottomWidthProperty, ValueResetFlags.Local);
    cell.ResetValue(LightVisualElement.BorderTopWidthProperty, ValueResetFlags.Local);
    cell.ResetValue(LightVisualElement.BorderLeftWidthProperty, ValueResetFlags.Local);
    cell.ResetValue(LightVisualElement.BorderRightWidthProperty, ValueResetFlags.Local);

    Let me know if I can assist you further.

    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
  3. DevCraft banner
  4. QuizzBox
    QuizzBox avatar
    45 posts
    Member since:
    Jan 2011

    Posted 09 Jun in reply to Dimitar Link to this post

    Works, thanks :)
Back to Top