alternating row color skipping rows when scrolling with mouse wheel

3 posts, 0 answers
  1. Eric
    Eric avatar
    24 posts
    Member since:
    Jul 2011

    Posted 02 Mar 2012 Link to this post

    We are having a problem with our alternating row color on the grid view.  Basically, the alternating color is not painted on all rows if you scroll wheel down a grid fast enough.  It may not just be limited to scroll wheel, but it seems more pronounced then.  It basically skips over the rows in terms of painting them with the alternating color.  They paint just as a standard row.  If you then click on some of the rows that should have been painted, they then paint and repair themselves.

    Telerik: 2012.1.12.215 (and the versions from last year had same problem)
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 05 Mar 2012 Link to this post

    Hi Eric,

    I've tried this and haven't been able to replicate your issue. I've put together a very simple exmaple for you to try to see if it works ok for you. It just assumes you have a RadGridView on a Form.

    Hope that helps, but let me know if you have further questions

    using System.Windows.Forms;
    using Telerik.WinControls.UI;
    using System.Collections.Generic;
    namespace RadControlsWinFormsApp1
        public partial class Form1 : Form
            private List<Person> people = new List<Person>();
            public Form1()
                this.radGridView1.EnableAlternatingRowColor = true;
                int i = 1;
                while (i <= 200)
                    people.Add(new Person(i, "Person " + i.ToString()));
                this.radGridView1.AutoGenerateColumns = true;
                this.radGridView1.DataSource = people;
        public class Person
            public Person(int id, string name)
                this.Id = id;
                this.Name = name;
            public int Id
            { get; set; }
            public string Name
            { get; set; }
  3. DevCraft R3 2016 release webinar banner
  4. Jack
    Jack avatar
    2335 posts

    Posted 07 Mar 2012 Link to this post

    Hello Eric,

    This issue can appear when using CellFormatting or ViewCellFormatting events to apply custom formatting. Please note that the properties locally set in these events have greater priority than alternating rows. 

    If the issue continues to appear, please open a support ticket and send us a sample project which reproduces the issue. We will be glad to help further.

    @Richard, thank you for the sample project.
    All the best,
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top