Scrolling - Graphics tear

I am using alternate rows for my sfDataGrid.  However once I start scrolling down when the new rows come into display I get this weird graphics glitch.  Sometimes if I scroll back up and then down it corrects itself.  Any idea how to fix this?

Screenshot 2024-08-06 101042.jpg



2 Replies

JE Jeff August 6, 2024 06:31 PM UTC

I was able to resolve it.  I had a relationship and was using a boolean to determine the row backcolor.  I had to change my code to this: 

        If e.RowIndex <> 0 Then

            If e.RowIndex Mod 4 = 3 Then

                e.Style.BackColor = Color.AliceBlue

            ElseIf e.RowIndex Mod 4 = 1 Then

                e.Style.BackColor = Color.Lavender

            End If

        End If



MA Manikanda Akash Munisamy Syncfusion Team August 7, 2024 06:37 AM UTC

Hi Jeff,

Your method of setting the BackColor is the proper way to provide AlternateRow Style. We glad that the query was addressed from your side. If you have any further queries, please create a new ticket. Accordingly, we are closing this forum.

Regards,

Manikanda Akash


Loader.
Up arrow icon