Alternate row not changing background color

2 posts, 0 answers
  1. Mohammad
    Mohammad avatar
    3 posts
    Member since:
    Jun 2015

    Posted 03 Dec 2018 Link to this post

    RadGridview not changing alternate row on radgridview.Rows.Move(0, 2) . AlternatingRowColor and property remain same.
  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3907 posts

    Posted 04 Dec 2018 Link to this post

    Hello, Mohammad,    

    Note that 0 and 2 are even numbers. That is why when the EnableAlternatingRowColor property is set to true, the rows at index 0 and 2 would have the same color. However, if you move the row to an odd index, its visual state won't be updated until you hover the cells or force a refresh operation. 

    I have logged it in our feedback portal. You can track its progress, subscribe for status changes and add your comments on the following link - feedback itI have also updated your Telerik points.

    Currently, the possible solution that I can suggest is to refresh the row you move: 

    private void radButton1_Click(object sender, EventArgs e)
        this.radGridView1.Rows.Move(0, 5);

    I hope this information helps.

    Dess | Tech Support Engineer, Sr.
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top